Skip to content

Instantly share code, notes, and snippets.

@judu
Created April 3, 2012 12:56
Show Gist options
  • Save judu/2291787 to your computer and use it in GitHub Desktop.
Save judu/2291787 to your computer and use it in GitHub Desktop.
git init repo in maven project
#!/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