I forked rails and then this is what I did.
> git clone git@github.com:nadal/rails.git
> cd rails
> git remote add upstream git://github.com/rails/rails.git
> git pull upstream master
Now git remote shows two items
> git remote
origin
upstream
I made a bunch of changes to master and comitted it. Then I created a bunch of branches to fix a few rails things. However when I rebase against master I also get changes I did to master.
I want to discard the changes I made to master.
Question:
Since I already committed some changes to my master, how do I reset my master to be exact copy of rails master. I want to discard the committs I made to my master.
1 Answer