git相关

作者: 山有木紫 | 来源:发表于2017-12-23 11:29 被阅读0次

git代理的解决方案

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

最后两行效果拔群

git的部分命令

git init
git add *
git commit -m "first edition"
git remote add origin git@github.com:qiyuhao7/writenByHumanOrNot.git
git push origin master
git push -u origin master #上面命令将本地的master分支推送到origin主机,同时指定origin为默认主机,后面就可以不加任何参数使用git push了。

相关文章

  • git基本命令

    git常用命令 git丢弃更改相关 git连接远程仓库相关 git切换分支相关 git stash相关 git标签相关

  • 前端 | Git的学习

    文章目录 Git相关命令 Git相关命令 git init :初始化本地git目录,生成 .git 文件夹 git...

  • 2019-06-26: Git 相关?

    一:Git相关 '--------------------------git pull--------------...

  • Git相关

    关联到GitHub http://www.runoob.com/git/git-remote-repo.html

  • Git相关

    更新 fork 的仓库 https://github.com/lxconan/java/blob/master/s...

  • git相关

    常见命令 git help git config --global user.name "一纸砚白" git co...

  • git 相关

    2018年3月27日15:31:29 用eclipse 用习惯了,换着思维使用一下git,服务器用的是coding...

  • git相关

    https://www.jianshu.com/p/52694939213b

  • git相关

    本地创建新分支: git checkout -b 新分支名字 或者 git branch 新分支名字 git br...

  • git 相关

    1,git clone .. 克隆远程分支到本地。 2,git checkout branchName 在本地切换...

网友评论

      本文标题:git相关

      本文链接:https://www.haomeiwen.com/subject/ncnfgxtx.html