
Git
git
我是泛滥
这个作者很懒,什么都没留下…
展开
-
gitee和hexo搭建个人博客
首先准备软件:git (提供命令git)notepad++(方便编辑)nodejs(hexo依赖安装#nodejs、git、notepad++安装过程省略。主要要说的是hexo的安装和配置。Win+R-> 'cmd' 打开命令行首先需要配置npm的国内源npm config set registry https://registry.npm.taobao.org #配置国内的镜像源cnpm info hexo # 测试查看hexo的安装信息,是否是taobao.org的源原创 2020-09-02 18:46:14 · 397 阅读 · 1 评论 -
FATAL Port 4000 has been used. Try other port instead.
最近在搭建 博客时:hexo s浏览博客时,提示4000端口问题$ hexo serverFATAL Port 4000 has been used. Try other port instead.FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/doError: listen EADDRINUSE 0.0.0.0:4000 at Object.exports._errnoExcepti原创 2020-09-02 11:42:53 · 4222 阅读 · 2 评论 -
idea 代码回退
方法一:本地仓库回滚的话只需要右键git 使用reset HEAD进行回滚选择回退方式:Reset typesoft:保留工作区及暂存区的修改,mixed:保留工作区的修改,清除暂存区Hard:不保留修改,直接回退到所选版本To commit 填写需要回退的版本然后 push选择Force push 强推 需要权限要求高git push -f方法二:打开version Control窗口,就可以查看之前的过往版本 ,右键直接revert Commit ,会弹出窗口提醒你comm原创 2022-03-28 15:28:19 · 9490 阅读 · 0 评论 -
git pull error: Your local changes to the following files would be overwritten by merge:
原因:本地项目文件有改动,并且没有commit ,所以从远程仓库拉取时,造成了与远程文件冲突解决方法:git stashgit stash是将工作区的修改暂时存起来,就像堆栈一样,可以随时将某一次的缓存修改重新应用到当前工作区其他常用方法git stash保存当前工作进度,会把暂存区和工作区的改动保存起来。执行完这个命令后,在运行git status命令,就会发现当前是一个干净的工作区,没有任何改动。使用git stash save 'message…'可以添加一些注释git stash lis原创 2021-01-13 16:59:58 · 394 阅读 · 0 评论 -
idea新建.gitignore文件
ignore插件之后就可以直接通过new的方式进行文件的新建点进去,选择默认的模板,点击generate就建好了原创 2020-07-11 18:59:13 · 679 阅读 · 0 评论 -
解决办法:error: failed to push some refs to ‘https://github.com/xxxx.git‘
当我在本地仓库用push到远程仓库是发生一下的错误:fengxun@DESKTOP-GL9HQRU MINGW64 /d/GitWorkSpace (master)$ git push origin masterTo https://gitee.com/woshifanlan/git_study.git ! [rejected] master -> master (non-fast-forward)error: failed to push some refs to 'http原创 2020-07-11 18:00:12 · 2691 阅读 · 0 评论 -
git本地到远程上传下载详细步骤
1.自报家门$ git config --global user.name "Your Name"$ git config --global user.email "email@example.com"2.git init命令把这个目录变成Git可以管理的仓库$ git initInitialized empty Git repository in /Users/michael/learngit/.git/3.用命令git add告诉Git,把文件添加到仓库$ git add .4.原创 2020-07-13 20:43:20 · 258 阅读 · 0 评论 -
Git使用教程
Git是目前世界上最先进的分布式版本控制系统一、工作原理 / 流程:二:SVN与Git的最主要的区别?三、在windows上如何安装Git?四:如何操作?一、工作原理 / 流程:Workspace:工作区Index / Stage:暂存区Repository:仓库区(或本地仓库)Remote:远程仓库二:SVN与Git的最主要的区别?SVN是集中式版本控制系统,版本库是集中放在中央服务器的,而干活的时候,用的都是自己的电脑,所以首先要从中央服务器哪里得到最新的版本,然后干活,干完后,需要把自转载 2020-06-28 11:22:57 · 116 阅读 · 0 评论 -
Git下载国内镜像地址
1:官网下载https://git-scm.com/downloads这种方式,在国内China基本上不会成功,本人试了几次,无法下载2:Git下载国内镜像地址https://npm.taobao.org/mirrors/git-for-windows/https://github.com/waylau/git-for-win采用国内镜像下载会很快...原创 2020-07-11 11:40:27 · 3743 阅读 · 0 评论