maven cheat sheet

%MAVEN_PATH%/conf/settings.xml

mvn tomcat:deploy

mvn clean package

mvn install

git cheat sheet

git checkout —

git checkout revision

git checkout master

git init

git add .

git commit -m ‘initial project’

git clone –bare myProject myProject.git

git clone user@host:/dir/myProject.git

git config –global user.name “name”

git config –global user.email “email”

git config –global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

git config –system http.sslcainfo /bin/curl-ca-bundle.crt

sudo chown -R gitUser gitDir/

git config –global core.editor vim

git config –global github.user username
git config –global github.token 0123456789yourf0123456789token

Fixing un-committed mistakes:
git reset –hard HEAD

git reset –hard HEAD~1

Fixing committed mistakes:
git revert HEAD

//update remote url
git remote set-url origin git@pangu.pac.adobe.com:/works/gitroot/2012/Course

git config –global core.excludesfile ~/.gitignore_global

git tag -a v1.0

git tag -l

git push –tags

git log –oneline –decorate –graph

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Compile generated folder#
############
bin/
bin-debug/
target/
classes/

# Packages #
############
# it’s better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db