Перейти до вмісту

Maven та Git

Матеріал з Вікіпідручника

Maven та Git:

mvn archetype:generate -DgroupId=org.wikipedia.uk -DartifactId=articlebot -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

git init
Initialized empty Git repository in /home/ilya/wm/java/articlebot/.git/

git add src/*

git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   src/main/java/org/wikipedia/uk/App.java
        new file:   src/test/java/org/wikipedia/uk/AppTest.java

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   .gitignore

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        pom.xml

ilya@ilya-ThinkPad-X230:~/wm/java/articlebot$ git add pom.xml
ilya@ilya-ThinkPad-X230:~/wm/java/articlebot$ git add .gitignore
ilya@ilya-ThinkPad-X230:~/wm/java/articlebot$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   pom.xml
        new file:   src/main/java/org/wikipedia/uk/App.java
        new file:   src/test/java/org/wikipedia/uk/AppTest.java