Add note about "care" when force-pushing

It wasn't obvious exactly how a user should "be careful" when force-pushing. Being explicit about what exactly it is important to take care to do can improve confidence in the process.
This commit is contained in:
Leonard Martin 2014-07-28 23:36:06 +01:00
parent 0b1f8fe4b6
commit 20dc20e9ae
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
```
Since rebasing **replaces the old commit(s) with a new one**, you must force push (`-f`) your changes. Be careful when you do this!
Since rebasing **replaces the old commit(s) with a new one**, you must force push (`-f`) your changes. Be careful when you do this - *always* make sure you specify a branch!
```
(mybranch) $ git push origin mybranch -f