Git操作命令

git base提交本地仓库代码到github

    (1) git remote add origin https://github.com/DemoTransfer/webmanager.git(github项目地址)
    (2) git pull origin master 拉取
    (3) git push -u origin master 推送

git本地仓库新增文件

    (1) git add readme.txt
    (2) git commit -m "wrote a readme file"

设置git的代理服务器

(1)git项目时,有时速度比较慢,可以设置--depth=1,只要最后一个版本的代码,而不要.git目录中的东西
git clone --depth=1 https://github.com/Project-OSRM/osrm-backend.git

(2)git config --global http.proxy http://127.0.0.1:8580
(3)git config --global https.proxy https://127.0.0.1:8580
(4)git config --global http.SSLVERIFY false

猜你喜欢

转载自blog.csdn.net/u013412772/article/details/80289851