You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head)
18
18
*[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)
19
20
20
21
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
21
22
<!-- @doxie.inject end toc -->
@@ -88,5 +89,10 @@ git checkout -- <file_name>
88
89
git remote set-url origin <URL>
89
90
```
90
91
92
+
## Stage parts of a changed file, instead of the entire file
93
+
```sh
94
+
git add -p
95
+
```
96
+
91
97
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
0 commit comments