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

Re: Feature Request: Capability to save and load the workspace

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 31, 2009, 09:20 UTC
Message-ID
<m3prbhryn7.fsf@localhost.localdomain>
In-Reply-To
<4A72AF1C.1020500@ubicom.com>
Yakup Akbay <yakbay@ubicom.com> writes:
Show 14 quoted lines
> I'm not sure whether such a feature exists or not. But let me explain my
> concern.
> 
> Say, we have different profiles for different products. When I work on a
> profile (edit, configure, build etc.) I can't switch to another profile
> before I distclean the existing one. So, when I have to work on 2
> projects at the same time, I have to have 2 copies of the same source
> tree. This might be OK for 2, but if the repository is around 3 gigs
> this is not quite suitable for more than 2 profiles.
> 
> IT WOULD BE NICE to have a feature in git that allows us to save the
> current workspace then work on a different profile on a clean
> environment. Then save that profile and switch back to the previous
> profile at any time without losing the environment.

First, if the problem is repository size, you can use git-new-workdir script from contrib/ to have multiple checkouts for a single repository (but each checkout better be on different branch).

As to "save current state": take a look at 'git stash' command, which saves state of working directory (and index).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Matthieu Moy
Message 6 of 6 in “Feature Request: Capability to save and load the workspace”
  1. Yakup AkbayJul 31, 2009
  2. Erik Faye-LundJul 31, 2009
  3. Yakup AkbayJul 31, 2009
  4. Johannes SchindelinJul 31, 2009
  5. Matthieu MoyJul 31, 2009
  6. Jakub NarebskiJul 31, 2009

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.