I added files ending with ~ in my repository in GitHub and now I want to remove them.
For example I added:
README.md
and the file
README.md~
was added as well.
Any help please?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For ignoring all the file ending with a
~you should add this to the.gitignorefile at the top-level in your repository (alongside the.gitdirectory).Then, for changing the history and removing the
README.md~file, you can either do it manually withgit rebase --interactiveor try to usegit filter-branch: