Git
Important Stuff from Git
creating repositries
- git clone ssh- clones an existing repo
- git init- creates a local repo
Local updates
- git status- tells you what stage your files are at
- git add .- adds all changes to the next commit
- git commit -m "commit message"- commits changes
Commit history
- git log- shows all commits
Branches
- git branch -av-lists all branches
- git checkout 'branch name'- switches the head to the chosen branch
- git checkout -b 'new branch name'- creates a branch a sets it to the head
- git branch 'new branch'- creates a new branch
- git branch -d 'branch'- deletes a branch
- git push --set-upstream origin branchNamepush to a branch for the first time
Update/Publish
- git pull- Downloads changes and merges them into HEAD
- git push- publishes local changes into remote
Merge
- git merge <branch>- merges HEAD into
//I could add stuff I want to learn here
    Written on April  6, 2018
  
  
