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

Edward Hyun·2022년 6월 17일
0

app&web-dev

목록 보기
119/178
$ git log --oneline
$ git reset --hard d678197 // 돌아가고자 하는 commit head
$ git push -f origin master

출처::
누구나 쉽게 이해할 수 있는 Git 입문
https://backlog.com/git-tutorial/kr/stepup/stepup2_5.html

Git 커밋 취소(reset), 커밋 되돌리기(revert), 덮어쓰기(amend)
https://www.lainyzine.com/ko/article/git-reset-and-git-revert-and-git-commit-amend/

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

git add 취소 :: 
git reset HEAD [file] 명령어를 통해 git add를 취소할 수 있다.
뒤에 파일명이 없으면 add한 파일 전체를 취소한다.

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

profile
앱&웹개발(flutter, vuejs, typescript, react), 인공지능(nlp, asr, rl), 백엔드(nodejs, flask, golang, grpc, webrtc, aws, msa, nft, spring cloud, nest.js), 함수형 프로그래밍(scala, erlang)을 공부하며 정리합니다.

0개의 댓글