In order to have more human readable git branches, do git pull --rebase To always pull like this, write these...
In order to clone a git repository including all branches and tags you need to use two parameters when cloning...
Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...
git shortlog -s -n [commit-range] -n, --numbered Sort output according to the number of commits per author
When you want to do a git diff but do not care about the full diff and just want to...
Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...
You probably haven't configured version control for your project. Go to Project Settings / Version Control and set the director...
Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...
MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
If git gives you an error message such as "fatal: bad config file line 123 in .git/config" after you tried...
Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...
If you say git stash, your stashed changes will be identified with an automatically generated message: $ git stash
When doing a git blame, git will blame the person who added or removed white space in a line (e.g...
When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them...
When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...
This article contains: Making ‘git diff’ wrap long lines Set a global proxy Clone only a specific branch
A nice way to stage absolutely all changes (edits, additions, deletions): git add --all
Git commits should be very deliberate, and only contain changes that you really want to be in there. In order...
While git branch will show you all branches and highlight the current one with an asterisk, it can be too...
Browsing the git stash is a bit tricky. Here is how to see the changes without applying them:
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
Today I got a better understanding of how git works, in particular what git checkout and git reset do.