配置好gitee后
1、输入命令:cd ~/.ssh
2、ssh-keygen
3、cat ~/.ssh/id_rsa.pub
4 将公钥复制出来就行了
本地修改的代码不要了,要仓库的最新代码:
git fetch --all
git reset --hard origin/master
git pull
git知识点
git配置
git config --global user.name ""
git config --global user.email ""
查看分支: git branch
创建分支: git branch name
切换分支: git checkout name
创建+切换分支:git checkout -b name
合并某个分支到当前分支:git merge name ()
删除分支:git branch -d name
提交代码
git add .
git commit -m ''