For a single file: git checkout path/to/file/to/revert
For all unstaged files: git checkout -- .
git ls-files --others --exclude-standard
mvn archetype:generate \ | |
-DgroupId=com.gmail.lifeofreilly.myproject \ | |
-DartifactId=myproject \ | |
-DarchetypeArtifactId=maven-archetype-quickstart \ | |
-DinteractiveMode=false |
package com.gmail.lifeofreilly.myproject; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.rules.TestRule; | |
import org.junit.rules.TestWatcher; | |
import org.junit.runner.Description; | |
import static org.junit.Assert.assertEquals; |
export JAVA_HOME=$(/usr/libexec/java_home) | |
export CATALINA_HOME=/Users/sreilly/Documents/apache/apache-tomcat-8.0.17 |
mvn archetype:generate \ | |
-DgroupId=com.gmail.lifeofreilly.myproject \ | |
-DartifactId=myproject \ | |
-DarchetypeArtifactId=maven-archetype-quickstart \ | |
-DinteractiveMode=false |
mvn archetype:generate \ | |
-DgroupId=com.gmail.lifeofreilly.helloworld \ | |
-DartifactId=helloworld \ | |
-Dname=helloworld \ | |
-Dpackage=com.gmail.lifeofreilly.helloworld \ | |
-DarchetypeGroupId=io.dropwizard.archetypes \ | |
-DarchetypeArtifactId=java-simple \ | |
-DinteractiveMode=false \ |
*.class | |
# Mobile Tools for Java (J2ME) | |
.mtj.tmp/ | |
# Package Files # | |
*.jar | |
*.war | |
*.ear |