开发者

Git commit some files

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜