Skip to content

Commit c7c5614

Browse files
tscpphubwriter
andauthored
Update using-git-rebase-on-the-command-line.md (#2048)
Co-authored-by: hubwriter <hubwriter@github.com>
1 parent fe00a6e commit c7c5614

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

content/github/using-git/using-git-rebase-on-the-command-line.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ As before, Git is showing the commit message for you to edit. You can change the
124124
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:
125125

126126
```shell
127+
# Don't override changes
128+
$ git push origin main --force-with-lease
129+
130+
# Override changes
127131
$ git push origin main --force
128132
```
129133

0 commit comments

Comments
 (0)