随笔分类 - Git
摘要:生成ssh 公私钥 1.生成仓库a的公私钥,假设邮箱为aa@aa.com: 在 git bash ./ssh 目录下输入如下命令: ssh-keygen -t rsa -C "aa@aa.com" -f ~/.ssh/a_id-rsa .ssh目录下生成文件如下: 2.将 .pub文件中的内容全部复
阅读全文
摘要:Git 常用命令 git branch 查看本地所有分支git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支git branch -r 查看本地所有分支git commit -am "init" 提交并且加注释 git remote add or
阅读全文
摘要:error: cannot lock ref ‘refs/remotes/origin/[branch]’ is *** but expect **** # 先更新一下reference git update-ref -d refs/remotes/origin/[locked branch nam
阅读全文