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

git clone --update ?

From
Ddarxus@chaosreigns.com <darxus@chaosreigns.com>
Date
Jan 7, 2011, 22:54 UTC
Message-ID
<20110107225405.GH20411@chaosreigns.com>

I'm working on a build script that pulls source from 12 git repos: http://www.chaosreigns.com/wayland/wayland-build-ubuntu-all.sh

I would like to be able to do the equivalent of:
 rm -rf gtk+; git clone git://git.gnome.org/gtk+ --branch gdk-backend-wayland

Without re-downloading the entire thing. Even if I made any kind of modifications to the repo.

One suggestion I've gotten was;
  git checkout gdk-backend-wayland && git fetch git://git.gnome.org/gtk+ gdk-backend-wayland && git reset --hard FETCH_HEAD && git clean -fxd
Possibly replacing the branch name with HEAD if I want the default branch.
It would be nice if, instead, I could just run something like:
  git clone --update git://git.gnome.org/gtk+ --branch gdk-backend-wayland
Bonus points for working if I have not already cloned it.
Next: Zenaan Harkness
Message 1 of 2 in “git clone --update ?”
  1. darxus@chaosreigns.comJan 7, 2011
  2. Zenaan HarknessJan 7, 2011

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.