Git

Pull Request 절차1. Fork2. clone, remote 로컬에 clonegit clone https://github.com/humback915/Design.git 원격 저장소에 추가git remote add  원격 저장소 현황git remote -v 3. branch 생성로컬에서 작업할 branch 생성 및 이동git switch -c sub  4. add, commit, pushgit 수정 파일 추가git add . git commit 메세지 추가git commit -m  git 원격 저장소에 push 하여 로컬 개발 브랜치가 원격 저장소에 생성git push  5. Pull Request 생성 6. Merge 7. branch 삭제 및 동기화원격 저장소와 로컬 동기화git pull ..
Git & Github 명령어1. git config 확인git config —list2. git config 설정git config —global user.nameuser.name 확인하는 명령어입니다.git config —global user.name “name”user.name을 지정하는 명령어입니다.git coonfig —global user.emailuser.email을 확인하는 명령어입니다.git coonfig —global user.email “email”user.email을 지정하는 명령어입니다.3. git config 삭제git conifg —unset —global user.namegit conifg —unset —global user.email4. git init 초기화디렉토리를 gi..
1. github.com 접속하여 sign in 하기 https://github.com/ GitHub: Where the world builds software GitHub is where over 83 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com 2. 계정에서 토큰 가져와서 연동하기 personal access tokens 생성 Settings -> Developer settings -> Personal access..
Branch : 다른 차원 프로젝트를 하나 이상의 모습으로 관리해야할 때 ex) 배포용, 테스트용... 여러 작업들이 각각 독립되어 진행될때 ex) 신기능, 코드개선, 수정... 각각의 차원에서 작업한 뒤 확정된 것을 메인 차원에 통합 1. main 외 다른 branch 생성 git branch 생성이름 2. 브랜치 목록확인 git branch 3. 브랜치 이동 git switch 브랜치명 4. 브랜치 생성 및 이동 git switch -c 브랜치이름 Git 2.23 이전 버전은 git checkout -b 이름 5. 브랜치 삭제 git branch -d 이름 6. 브랜치 이름 바꾸기 git branch -m 기존이름 새이름 7. 브랜치 결과를 그래프로 보기 git log --all --decorate ..
1. 파일들을 캡슐(버전)에 담기 명령어 : git add '파일명' 1-1. git status 를 통해 담기 캡슐을 커밋할 준비가 됐다고 표시 1-2. 한꺼번에 캡슐에 담기 명령어 : git add . 1-3. commit 하기 명령어 : git commit 위의 사진처럼 터미널이 vi 모드로 진입 하게 된다. 입력 : i 나가기 : esc 저장없이 종료 : :q 저장없이 강제종료 : :q! 저장하고 종료 : :wq 1-4. First commit 하기 ( 첫 버전 커밋하기 ) FIRST COMMIT 후 저장하고 종료 1-5. 간단히 Commit 하기 명령어 : git commit -m "메세지내용" 새로운 leopards.yaml 생성과 기존의 lion.yaml 파일 삭제 후 git status 확..
VCS Version Control System : 버전 관리 시스템의 한 종류인 git 협업 프로그램 Mac에서 Git 설치 1. Terminal 에서 git --version 확인 Mac은 기본적으로 git이 설치되어있음 2. https://git-scm.com/ 에서 git 최신버전 확인 Git git-scm.com 3. https://brew.sh/ 에서 homebrew 설치를 통해 git최신버전 다운 4. homebrew 홈페이지에서 install Homebrew의 클립을 복사하여 그대로 Terminal에 실행 Homebrew The Missing Package Manager for macOS (or Linux). brew.sh 5. 설치시 Warning 및 Error의 경우 친절하게 Next ..
defxyj
'Git' 카테고리의 글 목록