Git Cheatsheet

I'm always handling the code wherever I go so maybe its time I shared my notes. I'm really surprised but I should with my experience how many developers don't know git.
Squash commits!
I'm always forgetting this and its really simple to do if you remember both commands.

git rebase -i xxxxxxxxxxxxxxxx
git push --force origin master
"where xxxxxxxxxx is the SHA of the commit upto which I've to squash"


Get username

git config user.name
Change Email
git config user.email
Caching Password on Windows.

git config --global credential.helper wincred


More coming soon...

Popular posts from this blog

Updating Razor 2.0 to 3.0 with Asp.net MVC

EF: The database cannot be opened because it is version 782

HTML5 Audio doesn't Autoplay for Chrome on Android