daniel-s
9/7/2015 - 9:10 AM

Advanced

Advanced

squashing commits with rebase

Let’s say you’ve just made a few small commits, and you want to make one larger commit out of them. link

Store credentials in cache

Keep password cached in memory for timeout seconds (default 15min).

git config --global credential.helper cache
git config --global credential.helper "cache --timeout=3600"

Store credentials permanently (stored in clear text in a local file). the --global states to use the %HOME% directory instead of the project directory.

git config credential.helper store

Add user ans password on the remote url.

git remote set-url origin https://name:password@github.com/repo.git