GIT
1. 设置登录名和密码
git config --global user.name [name]
git config --global user.email [email]
2. 设置gitte仓库的公钥
ssh-keygen -t rsa -C [email]
cat ~/.ssh/id_rsa.pub
ssh git@github.com
ssh -T git@gitee.com
3. 从本地上传到gitte仓库
git clone [url]
git add .
git commit -m
git push
4. 分支命令
git branch
git branch -r
git branch [branch-name]
git checkout -b [branch]
git merge [branch]
git branch -d [branch-name]
git push origin --delete [branch-name]$ git branch -dr [remote/branch]
5. 其他命令
git init
git status [filename]