[git] 내가 자주 사용하는 명령어 모음

gabrisal·2021년 7월 18일
0

파일 변경내역 보기

git status

파일 add + commit + commit message 입력

git commit -am "커밋 메시지"

브랜치 변경 전 스테이징하지않는 파일 임시저장

git stash

스태시 목록 확인

git stash list

브랜치 되돌린 후 스태시 적용

git stash apply

스태시 제거

git stash drop

로그보기(브랜치 그래프 함께 보기)

git log [ --branches --graph ]

원격 저장소 경로

git remote -v

원격 저장소 포함 브랜치 목록 보기

git branch -a

브랜치가 트래킹하고 있는 원격 저장소 포함 브랜치 목록 보기

git branch -vv

원격 저장소 브랜치 삭제 명령어

git push origin --delete <branch명>

profile
가브리살

0개의 댓글