git push總是提交失敗

git push

結果提示如下

hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and merge the remote changes
hint: (e.g. 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull

由顯示正常:

Username for 'https://git.xxx.mycompany': myname
Password for 'https://[email protected]': 
Already up-to-date.

解決辦法:

git config --global push.default current
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章