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:
parent
d9ebd3156d
commit
0cd100f768
@ -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)
|
||||
|
||||
<!-- Don’t 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
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
Loading…
Reference in New Issue
Block a user