Fix git commit code Error

Source: Internet
Author: User

Today with Git clone under Code, modify, push commit, found the following error

403  while accessing https://github.com/zebozhuang/gocache.git/info/refs

Look, it turns out that I used HTTPS clone code, the remote URL under. Git also uses HTTPS, reference

http://stackoverflow.com/questions/7438313/ Pushing-to-git-returning-error-code-403-fatal-http-request-failed

Modify config under. git

    ssh://[email protected]/zebozhuang/gocache.git

Can.

The essence of the problem is that Git's version is too low. Reference

HTTPS://help.github.com/articles/https-cloning-errors/

Problem Solving!

----------------------------------------------Fri APR 22:45:01 CST 201, new problems arise

Git pull

for which branch your want to merge with . See Git-pull (1 for details    <remote> <branch> for This branch y     --set-upstream-to=origin/<branch> Master

Also belongs to the old version problem, which solves

Git branch--set-upstream-to=origin/master Master

Reference

http://stackoverflow.com/questions/10147475/git-checkout-tag-git-pull-fails-in-branch

Fix git commit code Error

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.