Uploading items to GitHub

Source: Internet
Author: User

Uploading items to GitHub

after creation, start committing the local project code :

Check the VCS selected button in the diagram :

then select the Add button in the src point :

Errors that may occur

Tip error Message: Fatal:remote origin already exists. The solution is as follows:

Then enter git remote add origin [email protected]:codegeekgao/test.git
Git push-u Origin Master
The following error is then reported:

! [rejected] master -> master (fetch first)error: failed to push some refs to '[email protected]:qzmly100/repository-.git'hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first integrate the remote changeshint: (e.g., 'git pull ...') before pushing again.hint: See the 'Note about fast-forwards' in 'git push --help' for details.

This is because:
A commit that does not exist in a local branch on a remote branch is often a problem encountered during a multi-person collaborative development process, and can be a fetch and merge, which is pull, which merges the commits on the remote branch into the local branch and then push.
If you are sure that those commits are not needed on the remote branch, then direct GIT push Origin master-f, forcing the local branch to overwrite the remote branch.

Uploading items to GitHub

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.