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.

    成功解决~

  • 相关阅读:
    nuc970连接jlink进行单步调试的设置
    alsa utils工具使用
    用arm-linux-gcc v4.3.4交叉编译Qt4.8.3
    LNMP分离式部署
    MHA(下)
    MHA(上)
    PXE自动装机
    JumpServer
    FTP
    DNS
  • 原文地址:https://www.cnblogs.com/tyzZ001/p/5958830.html
Copyright © 2011-2022 走看看