오픈소스
git 명령 몇 가지 - add 취소, branch 생성/전환, commit 취소
몽상꼴레
2022. 11. 23. 01:20
// Staging & Cancel
git add * ==> staging 하기
git reset HEAD [file] ==> git add 취소
// Branch
git branch ==> branch 목록 보기
git branch “new name” ==> 생성
git checkout “new name” ==> branch 전환
// Commit & Cancel
git commit -m “initial” ==> commit 하기
git commit —amend ==> commit message 변경
git reset HEAD^ ==> commit 취소