Skip to content

{ Category Archives } git

Pushing and Tracking Remote Branches with Git

I write at home and at work, so it is natural for me to use a remote repository to keep track of my work—even with Git. Distributed version control may not force this workflow on you the way subversion does, but the cool thing about Git is that it doesn’t force any particular workflow—it can […]

Post Commit Hooks

Commit hooks, scripts run when you commit to your repository, can be handy and are readily adaptable to a variety of workflows. Here is a quick and dirty post commit hook that I use for my dotfiles, remind files, and my todo list. These are kept in lightweight git repositories. Moreover, I want to push […]

Keeping your LaTeX Preamble in a Git Submodule

One of the much vaunted conceptual advantages of structural markup is the separation of form and content. In LaTeX, the preamble determines the the form of the document, how it is to be typeset, while the main body determines the content of the document and should contain only structural markup, markup that specifies the logical […]

Git Resource

Scott Chacon is maintaining this site, a useful compendium of git resources.

The Gist of LaTeX

GitHub has just launched Gist, a Git driven pastebin service. It is very handy to have a lightweight public (or private) repository. From the GitHub blog (see also here), Bryan Liles demos Gist:

BryanL demos Gist: A Super Hot Pastebin from Bryan Liles on […]

Cornerstone

Previewing at 1.0, Cornerstone, a GUI Subversion front end has been released.

Daring Fireball, as ever, with the wry commentary:

It strikes me as an odd coincidence that two serious Subversion clients would debut at a time when many developers are starting to switch away from Subversion to distributed revision control systems such as Git […]

Viva La Revolución

Kieran Healey has followed my lead and posted his sociology BibTeX files on GitHub. I could only be happier if someone forked me. C’mon, baby, fork me, fork me!

Update Kieran posts about it here.

Gitting BibTeX

Academics tend to be pretty good at sharing resources. For example, most publish their research online. This is really helpful since it can take a year or two after submission to finally see its way into print.

One useful thing that academics share, though less often than their research, is their bibliographies. LaTeX is predominant in […]

Bash Prompt Redux

OK, so you know a meeting is boring when you would rather redo your bash prompt. (And, yes, as a consequence, I have come to appreciate the point of running a headless meeting.) I wanted my bash prompt to tell me a number of things:

Who am I? Where am I? Which branch of a Git repository am […]

Migrating from Subversion to Git

Having decided to try out Git, I was excited to learn that Git could interface with Subversion repositories via git-svn. git-svn provides a bidirectional flow of changesets from a branch of a Subversion repository and any number of branches in a Git repository. The problem that I soon encountered should be evident from this description—you […]

Chacon Git Tech Talk

Scott Chacon, author of the very nice Peepcode title Git Internals, Source Code Control and Beyond, has given a Git Tech Talk at RailsConf 2008:

RailsConf 2008 Git Talk by Scot Chacon Video from daniel wanja on Vimeo.

The slides of his talk are also […]

Open in Git Gui

OpenInGitGui is an AppleScript droplet that allows you to open Git-Gui from the Finder. Install it in /Applications/Scripts (create the Scripts directory if it does not already exist), and drag the icon to the toolbar of your Finder. Select a folder containing your git repository and click the Git icon.

Sounds easy. It is. Though I […]

GitHub and TextMate

Are you a TextMate user and have a GitHub account? Then Dr Nic’s GitHub bundle may be for you. It requires the git ruby gem, so you need to install it first:

sudo gem install git

To install GitHub.bundle:

cd ~/”Library/Application Support/TextMate/Bundles/” git clone git://github.com/drnic/github-tmbundle.git “GitHub.tmbundle”

If TextMate is running, execute the following line:

osascript -e ‘tell app “TextMate” to reload […]

Git Scatter Graph for TextMate

Here is a command for TextMate’s Git bundle, that’s, well, kind of useless but makes me happy. The code comes from Chris on the GitHub IRC:

require ‘time’ lines = `git log –pretty=format:%ai` times = lines.map { |l| Time.parse l }

dots = [] 0.upto(7) { |wday| 0.upto(23) { |hour| dots « [hour, wday, times.find_all { […]

Git kicking it OS X style

Git allows you to visually inspect your commit history with Gitk. Which is great. But on OS X it looks a bit crap set against the polish of the OS and native apps.

If you are a Git-using geek still addicted to the Mac aesthetic, fear not! GitNub is for you…

GitNub is not as fully featured […]

GitHub Launch

GitHub is out of beta and has launched. More than just Git hosting, it has been described as myspace for hackers (for more on the social networking meme see also this post). And it seems that distributed version control and social software were made for one another. David Heinemeier Hansson has declared GitHub the killer […]

Cheating Git

I would like to post more about Git, but, alas, at this I point, I am still too much of a n00b. I will be moving over to Git entirely this summer and will post more on this topic then. But for now, let me pass on this useful tidbit for fellow n00bs. If you […]

Running VC

After posting about the version control bundle, I gave it a test spin.

The version control bundle requires GNU awk. If gawk is not installed on your *nix system, this script will do it for you:

#!/bin/sh # # installgawk.sh # # A bash script to install the latest version of GNU awk. Be sure to set the variables to the […]

The Version Control Bundle

CTAN has an interesting new package, the vc (version control) bundle. The vc bundle addresses some problems with earlier version control packages such as svn-multi (discussed here). First, earlier version control packages track version control information only for the LaTeX source. So, if you have a graphic, say, produced by an independent application, and you […]

Gitting TextMate

For those who might want to jump the gun on TextMate’s move to distributed development, Kevin Ballard has mirrored the bundle repository on GitHub at http://github.com/kballard/textmate-bundles/tree/master. Clone away!

FireStats icon Powered by FireStats