I need a bit of help with git
. My current "master" had some issues, so I checkout a version from a while back that I knew worked.
$ git checkout <hash>
Let's call that "previous." Then I made edits to "previous" and got things working just the way I wanted to. Then I commited and pushed "previous" to the git repo. Of course, on the repo, the "master" is still the old "master" with issues. I guess what I have to do is convert the "previous" (with the new edits) on my computer into "master" and then push that to the repo. How do I do that? I have read up on rebase
and tried that, but that doesn't work. I get the error message that "Cannot rebase: You have unstaged changes."