Skip to content

Instantly share code, notes, and snippets.

@LouisWayne
Last active March 25, 2018 04:12
Show Gist options
  • Save LouisWayne/4af992d68408fee2e6decff5a0445671 to your computer and use it in GitHub Desktop.
Save LouisWayne/4af992d68408fee2e6decff5a0445671 to your computer and use it in GitHub Desktop.
git commands
/** 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