Git
fina_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git submodule update --init --recursive 父子仓库
添加:git submodule add 子模块仓库地址 子模块在父模块目录下的存储路径。注意:路径不能以 / 结尾(会造成修改不生效)、不能是现有工程已有的目录(不能順利 Clone)删除:拉取,更新submodule......原创 2022-07-15 10:31:54 · 6613 阅读 · 0 评论 -
git命令总结
git tag 标签git tag //查看标签列表git tag v1.0 // 打标签,默认标签是在最新提交的commit上的git tag v0.9 f52c633 //指定版本打标签git tag -a v0.1 -m "我是描述" 1094adb // -a名称 -m描述git show v0.9 //查看标签信息...转载 2021-08-13 10:38:36 · 101 阅读 · 0 评论 -
git——错误集合
Q:输入git add readme.txt,得到错误:fatal: not a git repository (or any of the parent directories)。A:Git命令必须在Git仓库目录内执行(git init除外),在仓库目录外执行是没有意义的。Q:输入git add readme.txt,得到错误fatal: pathspec 'readme.txt' did not match any files。A:添加某个文件时,该文件必须在当前目录下存在,用ls或者di原创 2021-08-13 10:30:27 · 206 阅读 · 0 评论 -
npm install 错误合集
npm 怎么老出错!!!cb() never called!1、可能是缓存问题,清空缓存:npm cache clean -f2、删除 package-lock.json和 node_modules 文件夹,然后再执行 npm install3、node 版本问题:安装新版本node4、⭐最终 cnpm install 弄出来了!/(ㄒoㄒ)/~~...原创 2021-07-27 17:57:55 · 386 阅读 · 0 评论 -
git add .报错 File exists.
原文参考:https://www.cnblogs.com/untiring/p/7646157.html报错内容: $ git add . fatal: Unable to create 'E:/project/qbm_cs/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'.转载 2021-05-11 16:54:15 · 754 阅读 · 0 评论 -
从远程克隆项目
新建文件夹 打开git bash here git clone 远程仓库地址(我用的 https 好使) git checkout develop 不知道为啥克隆下来只有master分支,远程仓库的 develop 分支在本地显示没有 但是这属于远程仓库与本地仓库没链接上 在本地 gitcheckout develop,只要本地有和远程一样的分支名,自然而然就会链接上 由于克隆下来的项目有 package.json 文件了,我们这边只需要 npminstall 即可======...原创 2021-04-22 00:59:14 · 247 阅读 · 0 评论 -
新建分支——推送到远端——关联
There is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for details. git pull <remote> <branch>If you wish to set tracking information for this branch you can do so wi...原创 2021-03-30 13:48:57 · 306 阅读 · 0 评论 -
commit报错——husky > commit-msg hook failed (add --no-verify to bypass)
husky > commit-msg (node v12.18.3)⧗ input: 解决husky的bug✖ subject may not be empty [subject-empty]✖ type may not be empty [type-empty]✖ found 2 problems, 0 warningsⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-...原创 2021-03-29 16:55:10 · 3808 阅读 · 2 评论 -
git ( |MERGING)
https://www.imooc.com/wenda/detail/506890原因:当前分支落后(明明都是同一分支怎么回落后,那就是队友中间更新分支内容了)解决办法:解决冲突就好,首先解决的冲突,然后add. ,commit,pull,push原创 2021-03-19 00:16:29 · 289 阅读 · 0 评论 -
切换分支node_modules问题——npm ERR! This is probably not a problem with npm. There is likely additional log
原文转载自:https://my.oschina.net/u/3371661/blog/4355209npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! ty-app@1.0.0 serve: `vue-cli-service serve`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the ty-app@1.0.0 serve script.npm ERR! This is probab原创 2021-02-23 18:05:15 · 2581 阅读 · 0 评论 -
git checkout 分支——报错 xxx中存在大量活动更改,将仅启用部分git功能
出错原因:没有将 node_modules 添加到 .gitignore背景:远程仓库主分支不写代码,没有node_modules ;子分支要写代码,所以有 node_modules 。在切换的时候node_modules 没有忽略,所以切换到主分支的时候会告诉我忽然丢失了大量的node_modules 。总结:① 拉取代码规范:首先 git commit / git stash ② 保证本地代码库干净以后 ③ 最后 git p...原创 2021-01-27 11:38:24 · 5444 阅读 · 0 评论 -
npm run serve报错 ——‘vue-cli-service‘ 不是内部或外部命令,也不是可运行的程序
主要是 node_modules 没安装的问题原文转载自:https://blog.youkuaiyun.com/weixin_43170297/article/details/107039529转载 2021-01-27 11:22:50 · 1197 阅读 · 0 评论 -
git pull报错——remote: HTTP Basic:Access denied fatal:Authentication failed for——修改密码后的问题
背景:一直都没问题,但是周五的时候领导决定 将任务分配从 jira 改到 gitlab 上,然后在那之后我的 gitlab 不知道为啥登不上去了,于是我改了密码,然后这周一来 gitpull 就搞不下来,并且报错如标题解决方案:原文转载自https://blog.youkuaiyun.com/qq_34817440/article/details/106432747在这下面删除凭证,然后当我再次pull下来的时候,在重新输入账号密码就行了...原创 2021-01-25 13:44:57 · 529 阅读 · 0 评论 -
gitLab-issue 任务追踪
使用教程-简洁转载自:http://mssn.midea.com/ask/?/article/216转载 2021-01-22 11:49:22 · 915 阅读 · 0 评论 -
查看SSH密钥
C盘》用户》name》.ssh》id_rsa.pub文件原创 2020-12-31 10:21:10 · 1557 阅读 · 0 评论
分享