git rebase git rebase会修改commitId 1. 怎么修改老旧commit的message?git rebase -i [基于哪个commitId] reword 使用这个commit,但是修改message 2.怎么把连续的多个commit整理成1个?git rebase -i [基于哪个commitId] squash 使用这个commit,但是合到上一个commit上 3.怎么把间隔的几个 2020-04-07 git #git
git团队开发禁用内容 1. 禁止向集成分支执行push -f操作push -f 是强制提交 如果本地与远程分支不一致或有冲突时,使用push -f 操作会以当前本地分支的代码提交到远程,这时是会丢失代码。 1.多人分发时,你bug fix并已经提交到远程分支,测试验证了这个bug,但是过一会儿,测试又反应这个bug又出现了,你pull代码后,发现你本地这个bug fix commit 未提交到本地,就要注意是不是有人使 2020-04-07 git #git
暂存区与工作区与head 1. 如何让暂存区恢复成和head的一样git reset HEAD 2.如何让工作区的文件恢复为和暂存区一样git checkout – 文件名 3.怎样取消暂存区部分文件的更改git reset HEAD– 文件名[多文件] 4.消除最近的几次提交git reset –hard 想要变到的commitId 5.开发中临时加塞了紧急的任务怎么处理?git stash git status gi 2020-04-07 git #git
git入门 参考资料:https://git-scm.com 官网 https://git-scm.com/book/zh/v2 proGit 书 1. 安装githttps://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git 2.使用git之前 需要做的最小配置进入命令行模式,打开git bash git config 2020-03-30 git #git
git初始化并关联远程仓库 本地项目关联码云项目git init git remote add origin https://gitee.com/doufengle/HowTomcatWorks.git git push -u origin master 本地有提交,远程也有提交 git pull origin master –allow-unrelated-histories git branch –set-upstrea 2020-03-30 git #git
git 查看commit在哪个分支存在和分支之间比较 1.问题描述现有分支:develop、develop2.0+develop、develop2.0、release-20190930来了一个需求:我们在develop开发来了一个2.0需求:我们新增develop2.0分支测试需求:小组A要测试develop,小组B要测试develop2.0开发布署:新增develop2.0+develop分支20190930上线:develop上线完毕归档:从de 2019-10-11 git #git
maven的_remote.repositories 1.情况描述这个包在镜像服务器没有了,已经过时。本地仓库有这个jar包 2.报错[ERROR] Failed to execute goal on project easylife-cms: Could not resolve dependencies for project xxx: Failed to collect dependencies at com.json:json:jar:1.0: 2019-09-29 构建工具 #maven
arthas 1.下载安装12wget https://alibaba.github.io/arthas/arthas-boot.jarjava -jar arthas-boot.jar 12wget https://arthas.gitee.io/arthas-boot.jarjava -jar arthas-boot.jar --repo-mirror aliyun --use-http 更多下载安装去官 2019-09-27 java #arthas
arthas启动help 1.获取启动参数java -jar arthas-boot.jar -h 2.都是啥意思语法为: 12345678910111213arthas-boot [--telnet-port <value>] [--http-port <value>] [--session-timeout <value>] [--arthas-home <valu 2019-09-27 java #arthas
linux创建虚拟内存swap 1.创建一个swapfile用于虚拟内存:内存大小为物理内存的2倍左右DD是Linux/UNIX 下的一个非常有用的命令,作用是用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换。dd if=/dev/zero of=/root/swapfile bs=16M count=1000 一般是物理内存的2倍 2019-09-23 linux #linux #swap