I have modified a file, named index.html
then I run
git checkout .
which should rollback my modification…
It works well, but a new .index.html.swp file is created…
Why?
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.
That file isn’t created by git, it is a scratch file created by vim when it edits a file.
There are two likely causes for this: