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

Newbie: Branch management

From
DNDr. Jennifer Nussbaum <bg271828@yahoo.com>
Date
Jul 22, 2009, 20:41 UTC
Message-ID
<446739.83600.qm@web53410.mail.re2.yahoo.com>
Hi,
I hope its OK to ask basic questions on this list.
Im a recent convert to git and having trouble with branches. I mostly work on projects by myself, and what I want is that all branches of everything Im doing are in sync everywhere.
I have a remote repository on my production server that serves as the "main" repository. Then i work on projects on a number of different computers--my main home computer, my main work machine, several non-main computers :-) ... 
I've found it very confusing dealing with branches in this environment. If I have my "master" branch, and decide that i want a "refactoring-templates" branch, what Id *like* to do is create that branch, work on it, commit it, and when I say "git push" I want everything that's new on that computer to be synced to the "main" repository. And then when I get to the next computer, I want to be able to say "git pull" and have everything on that computer by synced *from* the "main" repository.
Instead I get confused by having to push branches separately, and it's confusing that when I do a pull it doesnt necessarily get other branches unless I specify them directly, and so on.
I've looked at the docs on branches and there's something i guess Im missing because this still seems very difficult. Can someone giving me advice on the best way to keep this kind of thing organized?
Thanks!
Jen
      
Next: Allan Kelly
Message 1 of 4 in “Newbie: Branch management”
  1. Dr. Jennifer NussbaumJul 22, 2009
  2. Allan KellyJul 22, 2009
  3. Allen JohnsonJul 23, 2009
  4. Tim HarperJul 23, 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.