提交 c7bce61a 编写于 作者: G Guo Xiang Tan

[CI SKIP] Improve force push note.

上级 e88f8d7d
...@@ -563,17 +563,17 @@ been updated. ...@@ -563,17 +563,17 @@ been updated.
Sometimes you will be asked to make some changes to the code you have Sometimes you will be asked to make some changes to the code you have
already committed. This can include amending existing commits. In this already committed. This can include amending existing commits. In this
case git will not allow you to push the changes as the pushed version case Git will not allow you to push the changes as the pushed branch
and local version does not match. Instead of opening new pull request, and local branch do not match. Instead of opening a new pull request,
you can force push to your branch on Github like described earlier in you can force push to your branch on GitHub as described earlier in
squashing commits section: squashing commits section:
```bash ```bash
$ git push origin my_pull_request -f $ git push origin my_pull_request -f
``` ```
This will update the branch on Github with your new code and This will update the branch and pull request on GitHub with your new code. Do
Github will take care of updating the pull request with new code. note that using force push may result in commits being lost on the remote branch; use it with care.
### Older Versions of Ruby on Rails ### Older Versions of Ruby on Rails
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册