Skip to content

Commit

Permalink
Add note about "care" when force-pushing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lennym committed Jul 28, 2014
1 parent 0b1f8fe commit 20dc20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20dc20e

Please sign in to comment.