As of this writing, CentOS 6.3 has a default git version of 1.7.1-2. This version is what you will have installed if you run the typical install command: # yum install git However, GitHub and many other services require git version 1.7.10 or higher. It turns out there is a very easy way to get git. [...]
Log In To Linux Using SSH Keys
There is an easier way to connect to your Linux box than having to remember and type passwords to gain access. We use git with a secured repository on a remote linux server. Often we want to push code, but having to answer the password prompts for every submodule can be a pain. There [...]
Cleaner Git Log With Merges
In some of our repositories now, Panhandler in particular, there are a lot of merge commits. As the master branch containing the API definition gets updated, each driver branch merges in master so that it can be updated to target the latest API. This results in the driver branches having various merge commits that bring [...]
More Info From Git Branches
For those of you that follow our posts on a regular basis, you’ll know we are somewhat biased toward using Git for version control. While Git takes some getting used to, once you have the basics down it is a very powerful tool. As you become more familiar with Git, you start to realize there [...]
Working With Git
Here are some basic cheat-sheet style hints for working with the git version control system. Creating A Repository These are the steps for starting a new repository with git. The commands here assume you will be working with a group of people that all need access to the repository from your server. You will need [...]
Versioning Word Documents In Git
We need your help! Cyber Sprocket is looking to qualify for a small business grant so we can continue our development efforts. We are working on a custom application builder platform so you can build custom mobile apps for your business. If we reach our 250-person goal have a better chance of being selected. It [...]
Undoing Mistakes Easily in Git
When I was explaining Git stuff to a co-worker on Friday, I said, if anything ever goes wrong to just remember this to undo it: $ git checkout @{1} I told him that would put him back in the state he was in prior to whatever his last command was. Although then I did not [...]
Commit Templates
On a lot of our commit messages we add a ‘Redmine-Ticket’ line with the appropriate ticket number. On some projects we also add a ‘Version’ line naming the build for which that patch is associated (using tags would be better for that in my opinion, but that’s a different subject). So most commits on one [...]
Easy Documentation for Git, MySQL, PHP, et cetera
This is what I do on my box to quickly find documentation, which you guys may find helpful. Especially those of you on Linux—although you could do this on Windows too. Most package managers make available ‘-doc’ packages, like php-doc, mysql-doc, and so on. Install these for all the major software you use. Next, install [...]
Version Control Your Home Directory
Git is useful not only for working with software projects, but also for keeping a history of things in your home directory. If you’re on Linux, then I recommend putting your entire home directory under Git. And if you’re on Windows, put the most appropriate directory under version control. At first this may sound a [...]
Git: Version 1.6.6
The next major version of Git—1.6.6—should be out any day now. At which point I will let you guys know. But I wanted to go ahead and tell you about the changes to take note of. git-config In your config files, variables that take paths can begin with ~/ or ~user/ and will be expanded [...]




