Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Question about “committed, but not pushed” #2
May I ask a n00b question about the approach from the section “If your changes are committed, but not pushed”?
It appears that
Again, I’m a Git n00b. Sorry if what I’m saying doesn’t make sense.
It does! There are several ways you can do this!
I prefer the back out since it gives me an automatic opportunity to make sure I've actually got all my files that I needed and can re-write the commit message.
You can also create a new branch from the branch you mistakenly committed onto, then remove the commits from that branch
What I dislike about this is that you can more easily drop a commit you didn't intend to drop. (It can be found and added back where you need it though).
I should update my stuff to include this!
Thanks for the question