I have two Git branches master and develop. For various reasons, my develop branch got messed up and I'd like to get all the files from master to develop. I know it's not the right solution, but here's what I did:
git checkout master cd .. cp repo repo_master cd repo git checkout develop cp -r ../repo_master/* . The weird thing is that, after copying my files (which should be in the master's version) into my repo, running
git diff Doesn't show anything. I don't get it. What is even weirder is that running
git diff master develop Does show a lot of differences.
What am I doing wrong? Also, how should I do it?
develop, something made that the whole code was doubled (I guess git just estimated that it was the best way to handle the conflicts...) and that's how I got a small hundred classes not to compile anymore. I would have done resets but I was working on a feature branch that got merged (yeah, that was the problem) intodevelopwhile other changes were made ondevelop.mastercode - which is working, by definition of git flow - and put it back intodevelopto have a "fresh start"developbranch to some commit frommaster. I can't give an exact answer, because your current state seems to be in a mess.