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
1 changed files with 6 additions and 0 deletions

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 -->