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

Basic Git usage

From
Hhogsolo <greg@localdirt.com>
Date
Aug 14, 2010, 04:32 UTC
Message-ID
<1281760358285-5422412.post@n2.nabble.com>

Hi, Im new to Git, formerly an SVN user. I have a master repo and have created a branch. I want to work in both at the same time. I want to change some files in the master, then switch to the branch ( git checkout branchname) , work on some files, then switch back to the master. However git wont let me switch back to the master until I have added, committed and pushed my files in the branch. Is this correct behavior for git? It would seem that I not be REQUIRED to check in anything I was working on before switching between branch and master, but that's the behavior I'm seeing via error messages.

thanks
-- 
View this message in context: http://git.661346.n2.nabble.com/Basic-Git-usage-tp5422412p5422412.html
Sent from the git mailing list archive at Nabble.com.
Next: Jakub Narebski
Message 1 of 3 in “Basic Git usage”
  1. hogsoloAug 14, 2010
  2. Jakub NarebskiAug 14, 2010
  3. Dmitry PotapovAug 14, 2010

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.