Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
how_to [2022/08/04 11:52] – [Add only modified changes and ignore untracked files using git?] javad | how_to [2022/08/04 16:54] – [Add only modified changes and ignore untracked files using git.] admin | ||
---|---|---|---|
Line 112: | Line 112: | ||
---- | ---- | ||
- | ===== Add only modified changes and ignore untracked files using git. ===== | + | ===== Add only modified changes and ignore untracked files using git? ===== |
+ | |||
+ | Using newer version of `git` (e.g., > | ||
< | < | ||
- | git ls-files --modified | xargs git add; git commit -m 'minor changes'; | + | git commit -am 'minor changes'; |
</ | </ | ||
- | The [[https://stackoverflow.com/ | + | ⚠️ <font inherit/inherit;;# |
- | + | ||
- | PS: | + | |
- | + | ||
- | by the new version of `git` the following would have the same effect as above: | + | |
< | < | ||
- | git commit -am 'minor changes'; | + | git ls-files --modified | xargs git add; git commit -m 'minor changes'; |
</ | </ | ||
+ | |||
+ | The [[https:// | ||
---- | ---- |