- git clone ‘地址’ 下载拉取项目
- git fetch --prune 删除已经在远程分支已经删除的分支
- git config --global user.name “name” 设置姓名
- git config --global user.email “email” 设置邮箱
- git commit -m ‘注释’ 提交暂存区到仓库区
- git reset --soft HEAD^ 撤回git commit
- git branch -d 分支名 删除本地分支
- git remote set-url origin http://gitcode.tongdao.cn/dev51/fe-xh/xxxxx 切换git仓库
- git add
- git reset 撤回
- git merge master 把master合并到当前分支
- git merge --abort 撤回有冲突的merge
SSH
1.先执行以下语句来判断是否已经存在本地公钥:cat ~/.ssh/id_rsa.pub
2.生成ssh key ssh-keygen -t rsa -C “huo@qq.com”
13. cd .ssh
4.查看目录 ls
5.获取key cat id_ed25519.pub