git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git rebase basics
@ 2012-06-13 20:59 lancelyons
  2012-06-14  0:07 ` Michael Witten
  2012-06-14  2:59 ` lancelyons
  0 siblings, 2 replies; 8+ messages in thread
From: lancelyons @ 2012-06-13 20:59 UTC (permalink / raw)
  To: git

I am trying to learn git on my own.  I have setup our own server for git
using https and have cloned this repository and have done pushes and pulls
with no problem.

I am trying to learn more about rebase so i have cloned the central repo (I
call this origin)
and made changes to the cloned copy and pushed two commits to origin.

so I have the following.

origin -->  C1 --> C2

in my cloned copy which I consider a branch

I have made two more commits  C3 and C4

clone --> C3 -->  C4

I am able to easily pull from origin to get my clone to look like  clone -->
C3 --> C4 --> C1 --> C2

I was wanting to rebase the clone branch so that it shows    clone -> C1 -->
C2 --> C3 --> C4

I though the command to do this was   git rebase origin master but that
doesnt work.



Any ideas on what I am doing wrong?

thanks


--
View this message in context: http://git.661346.n2.nabble.com/Git-rebase-basics-tp7561468.html
Sent from the git mailing list archive at Nabble.com.

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

end of thread, other threads:[~2012-06-14 17:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 20:59 Git rebase basics lancelyons
2012-06-14  0:07 ` Michael Witten
2012-06-14  2:59 ` lancelyons
2012-06-14  4:39   ` Hilco Wijbenga
2012-06-14 16:01     ` lancelyons
2012-06-14 16:28       ` Michael Witten
2012-06-14 17:21         ` lancelyons
2012-06-14  5:00   ` Michael Witten

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