Skip to content

Commit

Permalink
Merge pull request k88hudson#1 from lennym/patch-1
Browse files Browse the repository at this point in the history
Add note about "care" when force-pushing
  • Loading branch information
k88hudson committed Jul 28, 2014
2 parents 0b1f8fe + 20dc20e commit 9cc11b7
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 9cc11b7

Please sign in to comment.