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.

    成功解决~

  • 相关阅读:
    windows服务安装命令
    vue开发
    Quorum(NRW)算法机制简介
    SideCar模式
    Python抓取数据的几种方式
    Ms SqlServer索引的选择
    cmd添加环境变量
    好用工具网站
    Aufofac生命周期
    EF初次加载优化
  • 原文地址:https://www.cnblogs.com/aallenn/p/6700601.html
Copyright © 2011-2022 走看看