1、ssh-keygen -t rsa 2、按三下enter 3、将id_rsa.pub打开: linux :cat ~/.ssh/id_rsa.pub windows:"C:Usersling.sshid_rsa.pub" 2、复制内容到gitee中2、设置git postbuf:
git config --global http.postBuffer 50M3、git 重置用户名:
git config --global user.name "用户名" git config --global user.email "邮箱"4、git 记住用户密码:
git config --global credential.helper store5、关联远程仓库:
git branch --set-upstream-to origin/dev0628
本地仓库推送远端(远端没有)
直接推上去就行
git add -f7、删除分支:
删除本地分支:git branch -d branchname 删除远端分支: git push origin --delete branchname8、从其他分支合并部分文件到当前分支:
1、位于当前分支 2、git checkout 分支 路径/文件名



