On git,
I checked out one file, then I didn’t want to modify it, how to put it back?
Or I can just do nothing?
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.
Git doesn’t work with a “checkout/checkin” system.
git checkoutis actually just a way of setting your working directory to a particular branch/commit for examination; it doesn’t actually “lock” or otherwise indicate an intent to make modifications.Basically, you don’t need to do anything.