分类 tool articles

idea jvm调优

1、背景

idea作为一个高频使用的java IDE。性能的好坏,影响着开发的心情。工欲善其事必先利其器。

……

Continue reading

git log介绍

查看

1
$ git log

简化版日志

1
$ git log --pretty=oneline

查看前N条

1
git log -n

变更日志

-n 同上,不加则显示全部

……

Continue reading

git Version Control介绍

初始化一个Git仓库

1
$ git init

添加文件到Git仓库

1
2
$ git add <file>
$ git commit -m "description"

git add可以反复多次使用,添加多个文件,git commit可以一次提交很多文件,-m后面输入的是本次提交说明。

……

Continue reading

git 远程仓库介绍

创建SSH Key

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ ssh-keygen -t rsa -C "[email protected]"

Generating public/private rsa key pair.  # 生成密钥对 
Enter file in which to save the key (/root/.ssh/id_rsa):  # 保存路径
Enter passphrase (empty for no passphrase):   # 密码,默认空
Enter same passphrase again:   # 重复密码
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
92:41:73:6d:ba:03:bf:36:f8:ab:a2:90:0c:9c:a1:85 [email protected]
The key's randomart image is:
+--[ RSA 2048]----+
|      o ..       |
| .   . o  o      |
|E..   .  o       |
|o.o   .o.        |
|oo    ooS.       |
|o.     .+        |
|o.     . o       |
| .  . . +        |
|  .. ..+oo       |
+-----------------+

关联远程仓库

1
git remote add origin [email protected]:git_username/repository_name.git

添加后,远程库的名字就是origin

……

Continue reading