Category Archives: Git

Git tips and tricks

Display the active branch in the terminal prompt Add this line to ~/.bashrc PS1=’\u@\h:\w$(__git_ps1 ” (%s)”)\$ ‘ Automatic add during commit git commit -am “message” It automatically adds already versioned files to the index before commit. This will automatically remove … Continue reading

Posted in Git | Leave a comment

Having fun with Git

This post is not titled “why git”, so I won’t talk about its incredible speed, the concept of distributed repository, or the absence of fifthy thousands “.svn” folders everywhere in your filesystem. I just want to explain what makes it really different … Continue reading

Posted in Git | 1 Comment