Skip to content

Commit 41c46a9

Browse files
committed
Stage parts of a changed file, tip
1 parent 8d487c3 commit 41c46a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch)
1717
* [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head)
1818
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
19+
* [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file)
1920

2021
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
2122
<!-- @doxie.inject end toc -->
@@ -88,5 +89,10 @@ git checkout -- <file_name>
8889
git remote set-url origin <URL>
8990
```
9091

92+
## Stage parts of a changed file, instead of the entire file
93+
```sh
94+
git add -p
95+
```
96+
9197
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
9298
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)