Comment on What helps people get comfortable on the command line?
atheken@programming.dev 1 year agoI use git on the CLI exclusively. I almost never rebase, but otherwise get by with about 5-10 commands. One that will totally change your experience is git add -p
StudioLE@programming.dev 1 year ago
The documentation is entirely meaningless? What does it do?
atheken@programming.dev 1 year ago
You can stage individual chunks of a file.
Useful if you have a large set of changes you want to make separate commits for. I also just find that it’s a good way to do a review of each chunk before committing changes blindly.
Give it a shot some time, worst case is you stage some stuff that you don’t want to commit, but it’s non-destructive.