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

Git rebase basics

From
Llancelyons <llyons2@cox.net>
Date
Jun 13, 2012, 20:59 UTC
Message-ID
<1339621152946-7561468.post@n2.nabble.com>

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.

Next: Michael Witten
Message 1 of 8 in “Git rebase basics”
  1. lancelyonsJun 13, 2012
  2. Michael WittenJun 14, 2012
  3. lancelyonsJun 14, 2012
  4. Hilco WijbengaJun 14, 2012
  5. lancelyonsJun 14, 2012
  6. Michael WittenJun 14, 2012
  7. lancelyonsJun 14, 2012
  8. Michael WittenJun 14, 2012

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.