创建
git init –bare
分支
查看
git branch 查看分支
git branch -v 查看远程分支
git branch -a 查看所有分支
创建
git branch name 创建分支
git checkout name 切换分支
git branch -d name 删除分支
推送本地分支到远程
git push origin local_branch_name:remote_branch_name
删除远程分支 “:” 代表删除
git push origin :wc
代理
设置
git config –global http.proxy http://127.0.0.1:1080
git config –global https.proxy https://127.0.0.1:1080
git config –global http.proxy ‘socks5://127.0.0.1:1080’
git config –global https.proxy ‘socks5://127.0.0.1:1080’
取消
git config –global –unset http.proxy
git config –global –unset https.proxy