Created
August 10, 2021 16:32
-
-
Save claudioaltamura/64974843a2aca6b18a8824ee5346d5fc to your computer and use it in GitHub Desktop.
Maven switch profile with git repo
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
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