Skip to content

Instantly share code, notes, and snippets.

View LiyinZ's full-sized avatar

Liyin Zhang LiyinZ

  • Ontario, Canada
View GitHub Profile
git init
git remote add origin <project url> (which I copy from github's new repo page everytime)
git push origin -u master (copy from github)
git status - check status of project
git add . - add everything in current folder, do this before commit
git commit -m "Your message" - commit with message
git pull
git pull origin <branch-name>
git push origin <branch-name>
git merge - if all conflicts fixed