开发者

Git commit some files

开发者 https://www.devze.com 2023-03-28 01:09 出处:网络
When 开发者_StackOverflow社区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.

When 开发者_StackOverflow社区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?


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.


The easy way? Use a git GUI client

or

Use tab completion in your shell (you do use a shell with tab completion, right?): git add <start typing, hit TAB>

0

精彩评论

暂无评论...
验证码 换一张
取 消