git reset -p
A lot of people know you can use git add -p
to incrementally stage additions.
But a lesser known fact is that you can also do this with git reset -p
, in case you want to unstage an unwanted addition in a large changeset.
Written by Norman Clarke
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#