git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git push don't setup tracking?
@ 2009-05-11 11:46 jean-luc malet
  2009-05-14  6:34 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: jean-luc malet @ 2009-05-11 11:46 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git push don't setup tracking?
  2009-05-11 11:46 git push don't setup tracking? jean-luc malet
@ 2009-05-14  6:34 ` Jeff King
  2009-05-14  8:52   ` jean-luc malet
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2009-05-14  6:34 UTC (permalink / raw)
  To: jean-luc malet; +Cc: git

On Mon, May 11, 2009 at 01:46:10PM +0200, jean-luc malet wrote:

> 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

Yeah, this is on my todo list, but it is pretty low. There is a little
bit of cleanup that probably needs to happen first to unify http:// and
git:// push (Daniel did some of that recently, but I haven't had time to
look carefully at his work).

If you wanted to work on it, I would be happy to help guide you.
Otherwise, I may get to it eventually.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git push don't setup tracking?
  2009-05-14  6:34 ` Jeff King
@ 2009-05-14  8:52   ` jean-luc malet
  2009-05-14  9:33     ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: jean-luc malet @ 2009-05-14  8:52 UTC (permalink / raw)
  To: Jeff King; +Cc: git

On Thu, May 14, 2009 at 8:34 AM, Jeff King <peff@peff.net> wrote:
> On Mon, May 11, 2009 at 01:46:10PM +0200, jean-luc malet wrote:
>
>> 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
>
> Yeah, this is on my todo list, but it is pretty low. There is a little
> bit of cleanup that probably needs to happen first to unify http:// and
> git:// push (Daniel did some of that recently, but I haven't had time to
> look carefully at his work).
>
> If you wanted to work on it, I would be happy to help guide you.
> Otherwise, I may get to it eventually.
>
> -Peff
>
Hi,
thanks for the reply,
since I never looked into git code yet, I think I need first to get
familiar with it... I will look at it, and if I come to have a
solution I'll send it as a patch to the list, but since it might take
time for me to go into git's code if you find time to do it please
notice me ;)
thanks
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git push don't setup tracking?
  2009-05-14  8:52   ` jean-luc malet
@ 2009-05-14  9:33     ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2009-05-14  9:33 UTC (permalink / raw)
  To: jean-luc malet; +Cc: Jeff King, git

Hi,

On Thu, 14 May 2009, jean-luc malet wrote:

> since I never looked into git code yet, I think I need first to get 
> familiar with it...

There is a chapter in the user's manual which could help you:

http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#hacking-git

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-14  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11 11:46 git push don't setup tracking? jean-luc malet
2009-05-14  6:34 ` Jeff King
2009-05-14  8:52   ` jean-luc malet
2009-05-14  9:33     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).