將分支推送到遠程存儲庫時遇到錯誤: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes before pushing again.
這里我們選擇“打開命令提示符”菜單,打開了命令提示符,輸入提交到遠程命令:
git push origin master
如遇到 hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. 則
git pull origin master --allow-unrelated-histories