Git
Important Stuff from Git
creating repositries
git clone ssh- clones an existing repogit init- creates a local repo
Local updates
git status- tells you what stage your files are atgit add .- adds all changes to the next commitgit commit -m "commit message"- commits changes
Commit history
git log- shows all commits
Branches
git branch -av-lists all branchesgit checkout 'branch name'- switches the head to the chosen branchgit checkout -b 'new branch name'- creates a branch a sets it to the headgit branch 'new branch'- creates a new branchgit branch -d 'branch'- deletes a branchgit push --set-upstream origin branchNamepush to a branch for the first time
Update/Publish
git pull- Downloads changes and merges them into HEADgit 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
