git pull
要从远程仓库拉取更改,请访问Tools >Git >Remote Repository 并选择Pull 。
如果您有修改过的文件,系统会询问您如何处理。
管理未提交的修改
您可以对未提交的更改执行以下操作:
菜单项 | 说明 |
---|---|
Diff & Cancel | 查看更改的差异并取消git pull 。 |
Discard | 重置本地更改并执行git pull 。更改将丢失。 |
Ignore | 在工作目录中执行带有本地更改的git pull 。 |
Show/Hide Details | 显示或隐藏本地更改的详细信息。 |
Stash | 保存本地更改并执行git pull 。 |
Stash & Pop | 隐藏本地更改,执行git pull ,然后弹出更改。 |
用 rebase 拉取
转到 "偏好设置" >Version Control >Git ,然后选择Pull with rebase ,在拉取的同时执行回溯操作。
另请参阅 " 如何使用 Git "和"Git"。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.