Last active
March 25, 2018 04:12
-
-
Save LouisWayne/4af992d68408fee2e6decff5a0445671 to your computer and use it in GitHub Desktop.
git commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** GIT 명령어 모음 **/ | |
// Remote 관련 | |
- remote 정보 보기 | |
git remote -v | |
// Branch 관련 | |
- Local branch 보기 | |
git branch | |
- Remote branch 보기 | |
git branch -r | |
- Local branch 삭제 | |
git branch -d branch-name | |
- Remote branch 삭제 | |
git branch -d origin branch-name | |
// Commit 관련 | |
- 마지막 commit 취소 | |
git reflog // commit 기록들 프린트 | |
git reset HEAD@{index} // 돌아가고 싶은 index로 이동 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment