git操作最基本的流程 创建工作目录 对工作目录进行修改 git add ./ git hash-object -w 文件名(修改了多少个工作目录中的文件 此命令就要被执行多少次) git update-index ... git commit -m "注释内容" git write-tree gi ...
分类:
其他好文 时间:
2020-07-04 17:17:10
阅读次数:
65
一、git stash的man手册中对该命令的说明 git需要保存的内容:1、本地修改并且已经通过git add添加到缓存区的2、本地修改但是还没有添加到缓存区的3、可能还包括本地添加但是没有track的 DISCUSSION A stash is represented as a commit w ...
分类:
其他好文 时间:
2020-07-04 17:06:21
阅读次数:
98
GitHub对文件的大小有限制,问题在于,当移除了相关的文件之后,问题依然存在。 解决方法: 除了移除相关的文件,还要修改git的历史记录,移除相应的commit结点。 最简单的方法是使用以下命令: git filter-branch -f --index-filter 'git rm --cach ...
分类:
其他好文 时间:
2020-07-04 15:05:52
阅读次数:
56
Description There are G people in a gang, and a list of various crimes they could commit. The i-th crime generates a profit[i] and requires group[i] g ...
分类:
其他好文 时间:
2020-07-04 13:37:37
阅读次数:
57
cmd 进入 命令窗口 输入:sqlplus 用户名/密码@ip地址:端口号/实例名, 例如: sqlplus user/password@192.168.1.229:1521/ORCL 进入SQLPLUS后 输入 : @C:\xxx.sql 回车 ... 漫长的等待 ... 最后 commit o ...
分类:
数据库 时间:
2020-07-03 23:02:18
阅读次数:
69
git log 查看commit信息 git reset 7e6b6ef13bd3c9cb6369f4ff9ecb6b88b659aa9egit status 再git commit -m 一次 ,但是这种方法有的还需要自己微调一下,其实感觉 不是很好 ...
分类:
其他好文 时间:
2020-07-03 21:17:44
阅读次数:
46
安装: ? 去IDEA插件应用商城下载。 简介: Git Commit message规范采用的是Angular 规范 Angular规范中定义的格式有3个内容: Header | ? |- type(必需) : Type of change:commit的类别; ? |- scope(可选):Sc ...
分类:
其他好文 时间:
2020-07-03 17:58:43
阅读次数:
179
使用 git init 命令初始化Git仓库,使此项目文件夹成为Git可以管理的仓库 git init 使用 git add . 命令把项目文件添加到暂存区里面,不要忘记后面的小数点“.”,意为添加文件夹下的所有文件 git add . 使用 git commit 命令告诉Git,把文件提交到仓库。 ...
分类:
Web程序 时间:
2020-07-02 10:48:39
阅读次数:
79
首先使用vim ~/.bashrc进入 ~/.bashrc文件 然后在~/.bashrc文件添加以下修改 凭自己的习惯添加 alias gst='git status' alias ga='git add -A .' alias gc='git commit -m' alias gd='git di ...
分类:
系统相关 时间:
2020-07-01 20:34:45
阅读次数:
70
一、egg-mysql 的安装配置 1、在 egg 项目中安装 egg-mysql npm i egg-mysql --save 2、在 {app_root}/config/plugin.js 中启用 egg-mysql 插件: exports.mysql = { enable: true, pac ...
分类:
数据库 时间:
2020-07-01 19:59:16
阅读次数:
136