git与ssh配置

目录

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教程:
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001375840038939c291467cc7c747b1810aab2fb8863508000

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值