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

UI-Bootstrap Collapsible Sticky Footer

Installing Windows on Acer chromebook 15 cb3-532

Aspetcore: NLog with Postgresql