Tips and Tricks for using git
- create repository on github, create readme.md
- Go to the parent folder
- git clone
- Go to the newly created git local repository
- copy file(s) that you want to upload to the git local repository
- git add *
- git commit
- git push
Refresh github, the file(s) should be there
- git checkout <file(s)>
- git pull
- git checkout -b [branchName] # create branch
- git push --set-upstream origin [branchname] #publish branch
- git checkout [branchName] # switch to branch
- git branch # list branches (and where you are)