Git is available from the Ubuntu repositories in the git-core, git-doc, and git-gui packages (there are other Git-related packages available but I think those three make up a basic installation). The package maintainer’s version tends to be behind the currently available version of Git. To have the latest features and fixes in Git it is [...]
Posts Tagged ‘Git’
Tweaking the Bash Prompt
A little Saturday morning tweaking. Based on this post at railstips.org, I decided to adjust my Bash prompt by appending the following to my ~/.bashrc file: #… function parse_git_branch { ref=$(git symbolic-ref HEAD 2> /dev/null) || return echo "("${ref#refs/heads/}")" } BLACK="\[\033[0;30m\]" BLUE="\[\033[0;34m\]" VIOLET="\[\033[1;35m\]" CYAN="\[\033[0;36m\]" PS1="\n[$CYAN\u@\h:$BLUE\w$VIOLET \$(parse_git_branch)$BLACK]\n\$ " The prompt will now show the name of [...]
Git Resources
I have been learning to use Git. The following is a list of resources I found to be useful, interesting, or that I want to explore further as I get into Git: Website: Git – Fast Version Control System – The home of Git. When you think source code management it’s only natural to picture [...]