Skip to content

Instantly share code, notes, and snippets.

@JerryCui
Created June 7, 2018 07:09
Show Gist options
  • Save JerryCui/164ff740d72f9423b78f2e1b4cfa739c to your computer and use it in GitHub Desktop.
Save JerryCui/164ff740d72f9423b78f2e1b4cfa739c to your computer and use it in GitHub Desktop.
git usage
1. commit
a. git status //confirm all modifys
b1. git add //if you can confirm that there is not conflict , just add all necessary files
b2. git stash // if you can't confirm any conflict
c1. git commit -m " some comment "
c2. git pull // get all newest files
d2. git stash apply //confirm if conflict
e2. git commit -m " some comment"
f1. git push
f2. git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment