![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
git,gitbash,工具常用指令,项目步骤和常见指令及报错
八月@谁
前端
展开
-
解决git: 'subtree' is not a git command. See 'git --help'.
一、第一方法git clone https://github.com/git/git.gitcd git/contrib/subtreesudo make prefix=/usrsudo make prefix=/usr installsudo make prefix=/usr install-docThen command git subtree should be avail...原创 2020-01-15 10:50:51 · 10515 阅读 · 0 评论 -
git常用指令
git设置用户名和邮箱git config --global user.name "mrluotong"git config --global user.email "836313470@qq.com"输出版本号表示安装成功node -vnpm -v 配置SSH公钥ssh-keygen -t rsa -C "965643815@qq.com"cat ~/.ssh/id_rsa....原创 2019-12-27 08:39:10 · 108 阅读 · 0 评论 -
git--The authenticity of host 'gitee.com (120.55.226.24)' can't be established
Are you sure you want to continue connecting (yes/no)? yes在新生成密钥之后,在.ssh文件夹(之前的文章有提到过)中少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,便报了这样的错误,此时选择yes回车之后,便可,同时生成了缺少了的known_hosts文件:...原创 2019-12-26 09:07:54 · 378 阅读 · 0 评论 -
命令行报bash:.....:command not found的解决办法
命令行报bash:…:command not found的解决办法(几乎所有命令)命令行输入命令执行后报“bash:…:command not found”这是由于系统PATH设置问题,PATH没有设置对,系统就无法找到精确命令了。1、在命令行中输入:export PATH=/usr/bin:/usr/sbin:/bin:/sbin 这样可以保证命令行命令暂时可以使用。命令执行完之后先不要关闭...原创 2019-12-26 08:20:56 · 37054 阅读 · 0 评论 -
node.js多版本管理工具nvm-windows
在Windows下完全卸载已安装的node.js从卸载程序卸载程序和功能,也可以直接右键node.js的安装包并选择卸载。重新启动(或者重新启动任务管理器杀死所有与节点相关的进程)。从下列的目录中找到相关的内容并删除掉:1.C:\Program Files (x86)\nodejs2.C:\Program Files\nodejs3.C:\Users{User}\AppData\Ro...原创 2019-12-25 10:53:35 · 328 阅读 · 0 评论 -
git配置
单独为项目配置的方法(全局和单独配置都存在的时候会默认使用项目单独配置的):1.打开项目所在目录,找到隐藏的.git文件夹。注意这个文件夹是隐藏的,显示隐藏出来就行。2.打开文件夹里的config文件,推荐用nodepad++打开。3.添加这三行到文件:[user]name = XXX(用户名称)email = XXXX(邮箱)...原创 2019-12-24 14:07:30 · 92 阅读 · 0 评论 -
vue-cli3.0升级失败,vue-cli卸载不掉,vue-cli升级不了3.0,
用 官方文档的方式试了几次,版本号一直都在,也就是说没有 卸载掉,在这个路径直接手动删除vue-cli文件夹,搞定。C:\Users\Administrator\AppData\Roaming\npm\node_modules...原创 2020-01-04 11:42:29 · 544 阅读 · 0 评论