# git-pull-branch script

1 messages from 2005-06-27 to 2005-06-27. Participants: Jeff Garzik.
Thread: https://gitlist.dev/t/1032

## Jeff Garzik, 2005-06-27 12:27

Subject: git-pull-branch script
Message-ID: <42BFF0CE.1040209@pobox.com>
URL: https://gitlist.dev/e/42BFF0CE.1040209%40pobox.com

```

I've attached the 1-line git-pull-branch script that I just whipped 
together, in case anybody finds it useful.

On occasion, I need to pull one branch into another branch, inside the 
same repo.  For this case, the objects are already present, so we can 
skip the git-fetch-script step of git-pull-script completely.  I also 
modify the commit message so that we log the fact that we pulled a branch.




#!/bin/sh

git-resolve-script HEAD $1 "`pwd` branch '$1'"


```
