Git

Industry standard version control.

Stash

Stash is a good way to save changes before committing them if for example you want to change branches or merge something new into the branch you are working on. Think of git stash as a separate storage place to temporarily store your changes.

Store changes in stash

git stash

Retreive latest changes from stash

git stash pop

Retreive specific changes from stash

git stash pop stash@{index_number}

git stash pop stash@{1}

List changes in stash

git stash list

Show the most recent stash

git stash show -p

Stash single file

git stash -- filename.txt

Add files to gitignore that were in repo before

git rm -r --cached .
git add .
git commit -m 'clear git cache'
git push

Multiple Git Remotes

http://caseyscarborough.com/blog/2013/08/25/pushing-to-multiple-remotes-using-git/

Untrack files added to git based on gitignore

http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/