Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created July 29, 2015 17:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anildigital/8c4621828c922a0081d4 to your computer and use it in GitHub Desktop.
- I created a repo named 'foo'
- then I added a file named "a.txt" in master branch
- then created a branch named 'rad'
- in rad I added files named 'u', 'v', 'w'
- then I checked out master and added files 'b' and 'c'
- then I rebased rad with master with 'git rebase rad'
- then I pushed this repo 'foo' to github
- I cloned this repo from github to a folder named 'foo_remote'
- I then added files 'j' and 'k' to this foo_remote and pushed to github
- I then went to 'foo' and made sure current branch is master
- I then pulled the changes from origin master
Then I see duplicate commits in the history.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment