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

git push don't setup tracking?

From
JMjean-luc malet <jeanluc.malet@gmail.com>
Date
May 11, 2009, 11:46 UTC
Message-ID
<1de9d39c0905110446h5a0b54e3ic7cf58dda24d4bc4@mail.gmail.com>
Hi!
I want to use git in a "star" configuration.
I have  "repository" and 2 client "home" and "work"
I cloned repository on home and work, then I created a branch at work,
and pushed it to repository, at home I "git branch --track
origin/newbranch" and done some work... all ok there... then I pushed
again to repository
come back at work I wanted just to do a git pull.... and there it says
me that it don't have any tracking information... so I add to add by
hand the following lines into .git/config :
[branch "newbranch"]
	remote = origin
	merge = refs/heads/newbranch

and now it's working.... I think there shall be a way like "git push --track newbranch origin" so it store tracking information thanks and regards JLM

-- 
KISS! (Keep It Simple, Stupid!)
(garde le simple, imbécile!)
"mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses
simples et qui marchent, espèce d'imbécile!"
-----------------------------
"Si vous pensez que vous êtes trop petit pour changer quoique ce soit,
essayez donc de dormir avec un moustique dans votre chambre." Betty
Reese
http://www.grainesdechangement.com/citations.htm
Next: Jeff King
Message 1 of 4 in “git push don't setup tracking?”
  1. jean-luc maletMay 11, 2009
  2. Jeff KingMay 14, 2009
  3. jean-luc maletMay 14, 2009
  4. Johannes SchindelinMay 14, 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.