Git
You might find yourself in a situation where you have a branch that you created locally and want to push to a remote git repository. Suppose you created a local plugin branch that you want to expose to others through your GitHub repository but you are not yet confident enough to put it into the master branch. Here is the command you would execute to push all of the changes from your plugin branch to a plugin branch on the GitHub repository:
git push origin plugin
This tells git to push changes from your plugin branch to the plugin branch on...
It is no secret I have switched to using Git version control system for personal projects. One feature that is not enabled by default but I find very helpful is the use of colour when displaying output to the terminal. This is particularly useful when viewing file status and performing diffs. The use of colour can easily be enabled by adding the following “color” section to your personal .gitconfig file: [color]
ui = auto
User wide configuration settings like this one can be saved in your home directory (~/.gitconfig).
One of the first things I do immediately after installing msysgit (and/or using bash under cygwin) is to disable the annoying bell noise heard when using command line completion. To disable the bell, append the following line to the .inputrc file in your home directory (~/.inputrc): # Don't ring bell on completion
set bell-style none
During the subway leg of my commute into the great city of Toronto, I noticed some marketing that made me laugh out loud – literally, not in a LOL instant messenger sort of way. Normally, this may not have been a big deal or even noticeable, but when you’re riding the rocket in rush hour traffic with three or four people rubbing up against you, its hard not to make eye contact with the awkward stares. You may not find the following all that amusing, but when it comes to long commutes using public transit, every laugh counts. ...
In light of my last post where I mentioned how pleased I am with distributed version control, I thought I should share a few tips that have made my life using Git a bit easier. This post will be the first of several posts on configuring Git for daily use by a .NET developer running Windows. One of the first things to do after creating a new Git repository is to exclude certain files from ever entering the repository. Git has several built-in methods for excluding files. I use a single .gitignore file at the root of my source...