Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 403 Bytes

Git.md

File metadata and controls

15 lines (8 loc) · 403 Bytes

#Git Essentials

Head is a pointer that goes to the tip of the current repository

  • To checkout a file instead of a branch: git checkout -- curr_file
  • Take something out of staging: git reset HEAD file_name
  • Amend option: git commit --amend -m 'message'

Each git commit keeps track of parent and hash.

Working -> Staging Index -> Repository

git log --graph --oneline --all --decorate