git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git fetch vs push, git am questions
@ 2010-12-06 20:27 Konstantin Kivi
  2010-12-07  0:21 ` Konstantin Khomoutov
  2010-12-07 20:14 ` Neal Kreitzinger
  0 siblings, 2 replies; 5+ messages in thread
From: Konstantin Kivi @ 2010-12-06 20:27 UTC (permalink / raw)
  To: git

HI all
I honestly tried to find answers in various docs/books about git and failed, so I have to ask here.
 
1) Is it possible to achieve the same result with git fetch, as I have with git push. I have cloned a bare repository (2) from my repository (1) and 
I want fetch made in (2) get all info contained in (1) . I talk only about 'master' here. git push from (1) to (2) does the job, but git fetch in (1) updates only origin/master, and not master.
I also found that there is a notions of current branch in bare repository (master in my case), that stops my experiments of deleting master and making new master out of origin/master.
How can I change current branch in bare repositry?
 
2) I read that git rebase used 'git am' internally. How can  force git am/apply to create conflicts like rebase does in form
 
<<<<<<old
dksjfd
========
>>>>>jfkjdfkd
 
instead of *.rej files 

Best regard, Konstantin

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

end of thread, other threads:[~2010-12-09 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 20:27 git fetch vs push, git am questions Konstantin Kivi
2010-12-07  0:21 ` Konstantin Khomoutov
2010-12-07 12:31   ` Konstantin Kivi
2010-12-09 13:57     ` Konstantin Khomoutov
2010-12-07 20:14 ` Neal Kreitzinger

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).