Skip to content

Commit

Permalink
Update using-git-rebase-on-the-command-line.md (#2048)
Browse files Browse the repository at this point in the history
Co-authored-by: hubwriter <hubwriter@github.com>
  • Loading branch information
tscpp and hubwriter authored Jan 14, 2021
1 parent fe00a6e commit c7c5614
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ As before, Git is showing the commit message for you to edit. You can change the
Since you've altered Git history, the usual `git push origin` **will not** work. You'll need to modify the command by "force-pushing" your latest changes:

```shell
# Don't override changes
$ git push origin main --force-with-lease

# Override changes
$ git push origin main --force
```

Expand Down

0 comments on commit c7c5614

Please sign in to comment.