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

你可能感兴趣的:(git)