Created
April 3, 2012 12:56
-
-
Save judu/2291787 to your computer and use it in GitHub Desktop.
git init repo in maven project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ensure target is never committed | |
echo "target" >> .gitignore | |
git init | |
# Because there will always be at least these three files/folders in | |
# a maven project | |
git add src pom.xml .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment