
github
章鱼no丸子
相信未来
展开
-
github提示:fatal:remote origin already exists
使用命令:$ git remote add origin (项目) 提示:fatal:remote origin already exists 解决办法:$ git remote rm origin $ git remote add origin (项目)如果不行,可以去文件里面找。进入gitconfig文件删除[remote “origin”]这一行 然后就可以愉快的把本地库的所有内容推送到原创 2017-08-02 16:14:10 · 309 阅读 · 0 评论 -
fatal: Unable to create '........./.git/index.lock': File exists.
执行命令: git commit -m 时候一时抽风,没有写描述,直接来了个文件名,然后悲剧了: fatal: Unable to create ‘………/.git/index.lock’: File exists. 好吧…最后查资料获得解决方法rm -f ./.git/index.lock然后重新 提交就可以了原创 2017-08-02 16:24:09 · 521 阅读 · 0 评论 -
git常用命令
$ git // 是否安装了git $ git config --global user.name "你的名字" // 安装完成后自报家门 $ git config --global user.email "你的邮箱"// 安装完成后自报家门 $ mkdir 你的文件夹名字 // 创建一个项目(就是仓库不包含中文) $ cd 你的文件夹名字 // 进入仓库 $ pwd // /Users/.....原创 2017-08-02 17:56:07 · 260 阅读 · 0 评论 -
warning: LF will be replaced by CRLF in package-lock.json. The file will have its original line endi
warning: LF will be replaced by CRLF in package-lock.json. The file will have its original line endings in your working directory. 解决 将core.autocrlf设为false即可解决这个问题,不过如果你和你的伙伴只工作于Windows平台或者Linux平台,原创 2018-01-10 16:10:45 · 4804 阅读 · 0 评论