git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-pull-branch script

From
JGJeff Garzik <jgarzik@pobox.com>
Date
Jun 27, 2005, 12:27 UTC
Message-ID
<42BFF0CE.1040209@pobox.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'"
Message 1 of 1 in “git-pull-branch script”
  1. Jeff GarzikJun 27, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.