Git push-u Origin master error

Source: Internet
Author: User

Error item:

[Root@tyzz shell]# Git push-u Origin master
Error:the requested URL returned error:403 Forbidden while accessing HT Tps://github.com/tuesdday/shellscriptspractice.git/info/refs

Solution:

Vim. Git/config
will
[remote "origin"]
    URL = https://github.com/Tuesdday/ShellScriptsPractice.git         
    Fetch = +refs/heads/*:refs/remotes/origin/*

change to:
[remote origin]
    URL = https://tuesdday@github.com/ Tuesdday/shellscriptspractice.git         
    fetch = +refs/heads/*:refs/remotes/origin/*

Save exit, resubmit

[Root@tyzz shell]# Git push-u Origin master
Password: 
counting Objects:3, done.
Writing objects:100% (3/3), 232 bytes, done.
Total 3 (delta 0), reused 0 (Delta 0) to
https://tuesdday@github.com/tuesdday/shellscriptspractice.git
 * [New Branch] Master-, master
Branch Master set up-to-track remote branch master from Origin.

Successful Solution ~

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.