cheat box

branch & manage

 Git checkout -b {Branch}

 git checkout master

 git branch -d {branch}

 git push orgin {branch}

Merge

 git merge {branch}

 git diff {source_branch} {target brand}

Tagging

 Git tag {tag} {Commit ID}

 Git log

Restore

 Git checkout -- {Filename}

commit & Sync

 git commit -m "{Message}"

 git push orgin master

 git remote add orgin {Server}

 git pull

Add + Del

 Git add {file PATH}

 Git add *

 Git rm {file PATH}

Create + clone

 Git init

 git Clone {PATH}

 Git clonet Username@Password {PATH}