常用工具命令或语法速查

时间:2021-03-06 16:27:44

maven

http://www.iteye.com/topic/1123221

摘要

命令行创建工程

mvn archetype:generate   
-DgroupId=com.mycompany.app
-DartifactId=my-app-simple
-Dversion=1.0
-DarchetypeArtifactId=maven-archetype-quickstart

常用命令 mvn **

编译: compile

清理: clean

测试: test

打包: package

安装:install

git

http://blog.haohtml.com/archives/10129

摘要

创建git项目仓库

$git init

配置个人登记信息,这样团队协作的时候,就可以看到哪个用户修改过哪些文件的

$git config --global user.name 'cfanbo'
$git config --global user.email "baidu@gmail.com"

添加文件到主分支master,并提交
$git add a.txt b.txt
$git commit -m 'add file txt'

$ git clone lyr@192.168.0.7:~/work/m2ge ... 项目开发 ...
$ git add 改动的文件
$ git commit
$ git pull ... 解决版本合并问题 ...
$ git push

markdown

http://wowubuntu.com/markdown/basic.html

摘要

A First Level Header
====================
A Second Level Header
---------------------

Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.

The quick brown fox jumped over the lazy
dog's back.
### Header 3

> This is a blockquote.
>
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
Markdown 使用星号和底线来标记需要强调的区段。
Some of these words *are emphasized*.
Some of these words _are emphasized also_.
Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.
无序列表使用星号、加号和减号来做为列表的项目标记,有序的列表则是使用一般的数字接着一个英文句点作为项目标记

行内形式是直接在后面用括号直接接上链接:

This is an [example link](http://example.com/).

参考形式的链接让你可以为链接定一个名称,之后你可以在文件的其他地方定义该链接的内容:

I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].

[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"