Git

손정훈·2022년 12월 20일
0

Git

목록 보기
1/1

git 명령어

명령설명
git initgit 초기화
git config --global init.defaultBranch 'branch'브랜치 생성
git branch -m 'branch'브랜치 변경
git status파일 상태 확인
git add .Staging area로 파일 이동
git commit -m "commit message"파일을 Local repository에 저장하고 버전을 기록
git logcommit 내역 확인
git remote --v연결된 Remote repository가 있는지 확인
git remote add 'shortname' URLRemote repository를 연결
git push 'shortname' 'branch'작업물을 Remote repository에 업로드
git clone URLRemote Repository의 코드를 로컬로 복사
git restorecommit되지 않은 Local Repository의 변경 사항을 폐기
git resetcommit 해 놓은 기록을 취소
git pull 'shortname' 'branch'페어의 Remote Repository에 있는 작업 내용을 받아옴

git WorkFlow

0개의 댓글