![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
王女士还是青年
板烧鸡腿堡爱好者
展开
-
git commit 报错pathspec ‘commit‘‘ did not match any file(s) known to git
用git提交的时候,报错pathspec 'commit'' did not match any file(s) known to git后来发现用单引号提交报错,改成双引号就成功了git commit -m "first commit"原创 2021-03-08 16:08:18 · 6675 阅读 · 5 评论 -
git 常用命令
1、配置git config --global user.name 提交人姓名git config --global user.email 提交人邮箱这个global可以简写为–g,是全局配置,如果写错了直接重新写就覆盖了原来的配置。2、查看版本git --version3、初始化git init 4、查看文件状态git status5、添加git add 文件名这是添加单个文件git add [dir]添加指定目录到暂存区git add .添加当前目录的所有文原创 2020-11-10 21:35:13 · 89 阅读 · 0 评论