Etc

[git] git add 취소하기, git commit 취소하기, git push 취소하기

JH_Lucid 2021. 8. 10. 01:25

1. git add 취소 -> git reset HEAD "파일명" : 파일명 안쓰면 모두 stage에서 내림

 

2. git commit 취소 

-> 먼저 git log로 commit 목록 확인

 

+ commit message 변경 : git commit --amend

3. git push 취소

 

https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html