I added some new files to a local copy of a Github repo and accidentally ran git add *
and git commit
, but not git push
.
I think the new files should only be on my local copy of the repo. How do I safely remove those files from the next git push
command. I want to keep the files locally, but not include them in the next push.
What is the best way to remove them from git, but leave them in place on my hard drive?