프로그래밍/Git
# Git 수정 시 필요한 커맨드
뚱이의발걸음
2016. 1. 29. 15:58
별거 없네요. 첫째는 커밋하는 법과 커밋 하기전에 로컬 저장소 생성 등의 커맨드고 두번째는 잘못 커밋 했을 경우에 취소하는 커맨드입니다.
세번째는 브랜치에 관한 강의네요. 얼른 배우고 오겠습니다.
git checkout HEAD filename
: Discards changes in the working directory.git reset HEAD filename
: Unstages file changes in the staging area.git reset SHA
: Can be used to reset to a previous commit in your commit history.
Additionally, you learned a way to add multiple files to the staging area with a single command:
git add filename_1 filename_2