When I do a git status I see a lot of changed files. Normally 10-15.
Now I want to commit 2-3 files from these changed ones and commit.
What’s the easy to do this without using a mouse to copy the full file path from the git status output?
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.
Use
git add -i– look for the “Interactive mode” section.It’s a command line interface where you can easily select what to add/remove from the index (modified files, new files, deleted, …). It’s really easy to use.