环境准备
git配置
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
验证安装
git --version

代码操作
初始化仓库


上传到github

代码推送

查看提交
git log
项目创建

远程添加

git代理
设置代理
//http || https
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
//sock5代理
git config --global http.proxy socks5 127.0.0.1:7891
git config --global https.proxy socks5 127.0.0.1:7891
查看代理
git config --global --get http.proxy
git config --global --get https.proxy
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
参考链接
给傻子的Git教程
文章评论