← Back to context Comment by Lindby 21 hours ago `git add -p` is your friend to avoid adding unintended files/changes. 8 comments Lindby Reply eterm 20 hours ago What does that do, add already tracked files only? jdpage 20 hours ago It interactively shows you each change that would be added and lets you decide whether it should be staged or not. Down to the hunk level, so you can partially stage a file if you so choose. eterm 18 hours ago Oh, that's neat.The -p presumably stands for pInteractive with a silent p :) 3 replies → zelphirkalt 14 hours ago Ah, that's what magit does by default. matijs 16 hours ago That would be `git add -u/--update`
eterm 20 hours ago What does that do, add already tracked files only? jdpage 20 hours ago It interactively shows you each change that would be added and lets you decide whether it should be staged or not. Down to the hunk level, so you can partially stage a file if you so choose. eterm 18 hours ago Oh, that's neat.The -p presumably stands for pInteractive with a silent p :) 3 replies → zelphirkalt 14 hours ago Ah, that's what magit does by default. matijs 16 hours ago That would be `git add -u/--update`
jdpage 20 hours ago It interactively shows you each change that would be added and lets you decide whether it should be staged or not. Down to the hunk level, so you can partially stage a file if you so choose. eterm 18 hours ago Oh, that's neat.The -p presumably stands for pInteractive with a silent p :) 3 replies → zelphirkalt 14 hours ago Ah, that's what magit does by default.
eterm 18 hours ago Oh, that's neat.The -p presumably stands for pInteractive with a silent p :) 3 replies →
What does that do, add already tracked files only?
It interactively shows you each change that would be added and lets you decide whether it should be staged or not. Down to the hunk level, so you can partially stage a file if you so choose.
Oh, that's neat.
The -p presumably stands for pInteractive with a silent p :)
3 replies →
Ah, that's what magit does by default.
That would be `git add -u/--update`