Git
When Git or SSH Protocols Blocked
Recently I had issues connecting to Github because of some firewall restrictions outside my control. The firewall had outbound SSH (port 22) …How to Get The SHA of The Last Commit on a Branch With Git
I’ve been asked this a few times and have had to do it lately a few times. To get the SHA of the last commit from a specific branch, use git …Use Git Grep to Replace Strings in Files in Your Git Repository
TL;DR On Linux: git grep -l 'original_text' | xargs sed -i 's/original_text/new_text/g' On Mac: git grep -l 'original_text' | xargs sed -i …Using Latest Version of Git on Ubuntu
Whenever you do sudo apt-get install git-core on Ubuntu you will only get git version 1.7.5.x. I needed 1.7.6%2B. To do this you have to run …Automatically Execute Mistyped Git Commands
I use the command line with Git. I do this because I type faster than I use my mouse. It is a personal preference. Due to this, I sometimes …Git and Seeting What Commits Are Not In Another Branch
A common question I get from co-workers is, “How do I see if I already merged my changes into my master branch?”. My usual suggestion was to …Do Not Issue Pull Requests From Your Master Branch
PROBLEM: You do not want to issue pull requests from your fork’s master branch on Github.com to the parent repository because any new …git clone --mirror vs git clone --bare
I setup GitWeb at work recently. It is very fast and extremely useful. I noticed that the repositories the web view was looking at didn’t …Git Achievements on Windows (Part 3)
Part 1 I’m using Msysgit Bash CLI (up-to-date install instructions I’ve forked the git-achievements github repository notice it forks to a …Git-Achievements on Windows
UPDATE: _Needed to add newly clone git-achievements to your PATH env variable. Otherwise it will push an index.html file to your current …Gotcha with Gitosis and python-setuptools
Today I decided to upgrade my slicehost slice from Intrepid Ibex to Lucid Lynx (Intrepid → Jaunty → Karmic → Lucid). Yeah, yeah, I’m a …Gitosis and Gitweb - Part 3
Gitosis and Gitweb – Part 1 Gitosis and Gitweb – Part 2 So we are setup, have a project, and have contributors via the first 2 parts. I know …Gitosis and Gitweb - Part 2 - Add Projects and Contributors
Gitosis and Gitweb – Part 1 So we are setup now thanks to Part 1. Gitosis repository contents If we issue the “find .” command locally …Gitosis and Gitweb - Part 1 - Setup
I’ve had a number of people ask me where they should host their Git repositories. Of course, my default question back is, “Can the code be …My "Git Branching and Workflows" presentation at Austin Code Camp 2010
Thanks to Shawn Weisfeld for recording this presentation. Enjoy.Seeing which Git branch I'm on via my console prompt (__git_ps1)
I like knowing which Git branch I’m currently in. I use the git-ps1 function feature that comes with git-core. If you clone or download the …Pro Git Cliff Notes
These are my notes from reading Scott Chacon’s Pro Git I highly suggest buying this book if you are serious about using the Git version …Git reset, checkout & "bare double dash", and revert
UPDATE: Please make sure to read Alexander’s comments on git rebase --interactive UPDATE: If you need to unstage a file prior to your first …Suspicious Patch Lines
DISCLAIMER: This is only relevant if you or someone contributing to your project are doing cross-platform development. If you are typically …Git For Windows Developers – Git Series – Part 4
ROUGH DRAFT - NOT READY FOR RELEASE OR REVIEW This post is on TortoiseGit. For those that may be unaware, there is a very popular tool …Git For Windows Developers – Git Series – Part 3
Git For Windows Developers - Git Series - Part 1 Git For Windows Developers - Git Series - Part 2 Git For Windows Developers - Git Series - …Git For Windows Developers – Git Series – Part 2
Git For Windows Developers - Git Series - Part 1 Git For Windows Developers - Git Series - Part 2 Git For Windows Developers - Git Series - …Git For Windows Developers – Git Series - Part 1
UPDATE: I’ve updated the msysgit installation screens so they are more current. Git-1.7.7.1 is the latest one as of this update. The …