Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save claudioaltamura/64974843a2aca6b18a8824ee5346d5fc to your computer and use it in GitHub Desktop.
Save claudioaltamura/64974843a2aca6b18a8824ee5346d5fc to your computer and use it in GitHub Desktop.
Maven switch profile with git repo
git init
touch .gitignore
echo 'repository' >> .gitignore
echo 'wrapper' >> .gitignore
git add .
git commit -m "initial commit"
git checkout -b other_config
change settings.xml
git add .
git commit -m "chg: other config"
#default
git checkout master
#other config
git checkout other_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment