1
0
mirror of https://github.com/namibia/tips.git synced 2024-11-14 09:14:06 +00:00

Stage parts of a changed file, tip

This commit is contained in:
Hemanth.HM 2015-07-16 12:29:32 +05:30
parent d9ebd3156d
commit 0cd100f768

View File

@ -16,6 +16,7 @@
* [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch)
* [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head)
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
* [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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -88,5 +89,10 @@ git checkout -- <file_name>
git remote set-url origin <URL>
```
## Stage parts of a changed file, instead of the entire file
```sh
git add -p
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->