Workarounds for GIT local library push remote library version conflicts

Source: Internet
Author: User

Reference: http://blog.csdn.net/shiren1118/article/details/7761203

Workarounds for version and local version conflicts on GitHub

$ git push XXX master
Push the latest changes to the local master branch to the remote library XXX

Username for ' https://github.com ': shiren1118
Password for ' https://[email protected] ':
To Https://github.com/shiren1118/iOS_code_agile.git
! [Rejected] master, master (Non-fast-forward)
Error:failed to push some refs to ' https://github.com/shiren1118/iOS_code_agile.git '
Hint:updates were rejected because the tip of your current branch is behind
Hint:its remote counterpart. Merge the remote changes (e.g. ' git pull ')
Hint:before pushing again.
Hint:see the ' Note about Fast-forwards ' "Git push--help ' for details.

Tick Force Overwrite existing branch (may lose changes), then click Upload, upload successfully.

[Master] [~/downloads/ios] $ git push XXX master-f

Workarounds for GIT local library push remote library version conflicts

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.