目录
ssh配置
windows下配置SSH密钥:
https://docs.joyent.com/public-cloud/getting-started/ssh-keys/generating-an-ssh-key-manually/manually-generating-your-ssh-key-in-windows#putty
git配置
Git的使用–如何将本地项目上传到Github:
https://blog.csdn.net/zamamiro/article/details/70172900
git 错误error: failed to push some refs to:
https://blog.csdn.net/winnershili/article/details/78888548
Git 提示fatal: remote origin already exists 错误解决办法:
https://blog.csdn.net/top_code/article/details/50381432
git 出现 fatal: refusing to merge unrelated histories 错误解决方案:
https://www.centos.bz/2018/03/git-出现-fatal-refusing-to-merge-unrelated-histories-错误/
git删除项目:
https://jingyan.baidu.com/article/2fb0ba4084070900f2ec5f1c.html
本地仓库:
初始化:git init
查看改变的文件(夹):git status
添加全部修改文件:git add .
添加指定修改文件:git add filename1 filename2 filename3 (如果有多个文件空格隔开)
提交修改到本地仓库:git commit -m “提交说明…”
关联远程仓库与本地仓库:git remote add origin https://github.com/wnismiddle/test.git
推送本地仓库内容到远程仓库:
git push -u origin master
第一次推送要加上-u参数,之后上传只需要:
git push origin master
Git鼓励大量使用分支:
查看分支:git branch
创建分支(test):git branch test
切换分支:git checkout test
创建+切换分支:git checkout -b test
合并某分支到当前分支:git merge test
删除分支:git branch -d test