![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
zhhao1
这个作者很懒,什么都没留下…
展开
-
git同时推送github和gitee
1.创建git ssh方式访问 首先申请一个ssh密钥,然后到gitee和github上把公钥给复制上去 2.设置.ssh/config # github Host github.com Hostname ssh.github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa Port 443 # gitee Host gitee.com HostName gitee.com PreferredAuthentications原创 2021-04-27 23:26:30 · 170 阅读 · 0 评论 -
git分支操作
1.如果写的新功能不想提交推送到master分支 第一步 -b会创建一个分支,并切换到该分支上 git checkout -b [branch name] 第二步 添加本地需要提交代码,并提交推送 git add . git commit -m "add my code to new branchB" git push origin [branch name] 2.合并dev分支到master 合并分支只需要记住,A merge B ,是在A的基础上把B的东西拿过来 第一步 先切换到dev分支 g原创 2020-08-05 09:46:12 · 118 阅读 · 0 评论