Git tips from stackoverflow
Here are some pretty cool and very useful git tricks I learnt by searching or reading stackoverflow.
Most of them are operations that should be pretty easy to do, and seem pointlessly complicated. The second one is an excellent example of both the flexibility and the lack of user friendliness of the git UI
Prevent a file from being commited, ever
Git: Never Commit Changed Files (But still keep original revisioned.)
git update-index --assume-unchanged <file>
To make it commitable again run
git update-index --no-assume-unchanged <file>
Commits no yet pushed
Viewing Unpushed Git Commits
If you want to see all commits on all branches that aren’t pushed yet, you might be looking for something like this:
git log --branches --not --remotes
And if you only want to see the most recent commit on each branch, and the branch names, this:
git log --branches --not --remotes --simplify-by-decoration --decorate --oneline
February 13, 2012
My experience using Titanium to build a desktop app.
December 25, 2011
BrowserID is an identification service from Mozilla that aims to remove the need for accounts at each website we visit. I explain how to implement it on your site.
September 17, 2011
I needed to monitor the load on my web server like, right now, so I wrote this script.
August 27, 2011
I stopped using Wordpress for this blog a long time ago. This is how I did it.
August 18, 2011
Phpstorm allows incoming connection from Xdebug to enable variable inspection, breakpoints and so on in your favorite IDE.