git
git操作
铭赟
这个作者很懒,什么都没留下…
展开
-
git 命令创建新分支并提交,创建新分支并合并到主分支
一、 创建test分支提交步骤 1.列出所有分支 git branch -a 2.创建test分支 git branch test 3.切换到test分支: git checkout test 4.添加add修改: git add . 5.添加commit注释 git commit -m “第一次提交代码” 6.提交到服务器 git push origin test Or git push origion HEAD:refs/for/test 二、将test分支合并到master本地分支 1.创建test分转载 2021-04-14 16:34:43 · 2528 阅读 · 0 评论 -
git ssh密钥
git SSH 密钥创建 终端输入 ssh-keygen -t rsa -C ‘你的用户名’ 打开.ssh文件夹,复制id_rsa.pub中的公钥 登录git账号,进入设置,在ssh密钥中输入上一步复制的公钥原创 2021-04-14 13:15:00 · 65 阅读 · 0 评论