Take_cheeze Wiki
Advertisement

magit[]

github[]

Commands[]

subtree[]

status[]

  • run this command before any git operation.

reset[]

  • use to revert codes.
  • "git reset HEAD^1" is useful to change the recent history.

checkout[]

  • use to switch branches and clear repository.

branch[]

  • branch managing command

stash[]

  • use to save and pop temporary edit or crossing over branch.
  • git stash save
    • save current changes
  • git stash pop
    • pop saved stash

remote[]

push/pull[]

  • use for merging and publishing to external repository.
  • deleting remote branch
    • git push remote_name :deleting_branch
  • 'pull' is harmful so use fetch instead.

commit[]

  • use to make commit
  • don't forget to check that code compiles correctly before this.
  • "-a" option is useful but make sure all code can be committed.

config[]

  • Document
  • Repository configuring.
  • for global setting use ~/.gitconfig

Attribute[]

Advertisement