git分布式管理工具使用
创建一个git仓库
git init
git add (.) 提交到暂存区
git commit -m <>
git log <--stat>
git diff <commit-id>
git reset --hard <commit-id>
git checkout <commit-id>
git branch
git checkout -b develop
$master git merge develop
git config
修改某些属性
git config --global <properity> <value>
eg:
1 | git config --global user.name |
查看属性
git config --list --show-origin
git clone
携带参数
eg:git -c http.sslVerify=false clone <URL>
本地仓库和远程仓库绑定(远程分支)
git remote remove origin
git remote add origin "https://github.com/LosLiSang/loslisang.github.io.git"
参考
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





