zoukankan      html  css  js  c++  java
  • git push -u origin master报错

    报错项:

    [root@tyzZ SHELL]# git push -u origin master
    error: The requested URL returned error: 403 Forbidden while accessing https://github.com/Tuesdday/ShellScriptsPractice.git/info/refs

    解决方案:

    vim .git/config
    将
    [remote "origin"]
        url = https://github.com/Tuesdday/ShellScriptsPractice.git         
        fetch = +refs/heads/*:refs/remotes/origin/*
    
    改为:
    [remote "origin"]
        url = https://Tuesdday@github.com/Tuesdday/ShellScriptsPractice.git         
        fetch = +refs/heads/*:refs/remotes/origin/*

    保存退出,重新提交

    [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.

    成功解决~

  • 相关阅读:
    HDU
    HDU
    西电OJ
    西电OJ
    西电OJ
    USACO 2.1-Healthy Holsteins
    USACO 2.1-Sorting a Three-Valued Sequence
    HDU
    UVA
    codeforces 811A Vladik and Courtesy
  • 原文地址:https://www.cnblogs.com/aallenn/p/6700601.html
Copyright © 2011-2022 走看看