зеркало из https://github.com/github/docs.git
Update using-git-rebase-on-the-command-line.md (#2048)
Co-authored-by: hubwriter <hubwriter@github.com>
This commit is contained in:
Родитель
fe00a6e8dc
Коммит
c7c56148ed
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче