使用当前目录作为GIT仓库
>git init
使用指定目录作为GIT仓库
>git init newRepo
Clone <repo>仓库到<directory>目录
>git clone <repo> <directory>
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 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
Git 提交代码流程:
git pull origin dev->
如果代码有冲突,本地修改冲突文件
>git add .
>git commit -m 'comment content'
>git push origin dev