git常用命令
发表于 · 归类于
代码 · 1 分钟 ·
阅读量 · 报告错误
在本地目录下关联远程repository
git remote add origin git@github.com:git_username/repository_name.git
取消本地目录下关联的远程库
在远程仓库创建分支
推送到远程分支
取消文件跟踪
克隆远程指定分支
git clone -b v2.8.1 https://git.oschina.net/oschina/android-app.git
只对github.com代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
取消代理
git config --global --unset http.https://github.com.proxy