zoukankan      html  css  js  c++  java
  • 本地向GitHub提交403错误解决办法(自己的创建的项目)

    1. git clone https://github.com/waittingbar/xxx.git

    2. 修改文件后  git add .

    3.  git commit -a -m "change something"

    4.  编辑 .git/config 文件

    5.  修改 url= https://github.com/waittingbar/xxx.git  为  url=ssh://git@github.com/waittingbar/xxx.git
    6. 保存 config文件

    7.  提交到你的 GitHub  git push origin master

      最终config页面如下:

     

    [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true [remote "origin"] url =ssh://git@github.com/waittingbar/xxx.git fetch = +refs/heads/*:refs/remotes/origin/*  

  • 相关阅读:
    柱状图最大的矩形
    单词搜索
    最小覆盖子串
    颜色分类
    编辑距离
    X的平方根
    二进制求和
    最大子序和
    N皇后
    java8-14-时间API
  • 原文地址:https://www.cnblogs.com/demoworld/p/7265115.html
Copyright © 2011-2022 走看看