#git
Multiple GitHub Accounts Without the Manual Switching
Separate personal and work GitHub identities with SSH aliases, conditional Git configuration, and a Zsh wrapper that selects the right gh account per command.
How to recover a deleted file in Git
At work happens multiple times that I got asked how to recover a file somebody else deleted from a git repository. Even if it is not complicated, I decided to jot down a quick t…
Protect Your Private Data Using Gitconfig Include Directive
Keep shared Git settings in your dotfiles while storing your name and email in a separate local configuration file.
Extract a Directory From a Git Branch/Repository Preserving The History
At work we wanted to extract from a branch a subdirectory containing a specific feature that had to be used from everyone in the team. Just for sake of example, let's define the…
How to fetch upstream changes in git easily
It is quite common to update your git fork repository with the upstream changes. Here it is the workflow I use to keep synchronize my branch with Octopress. + First of all, we s…