Last active
July 6, 2019 09:44
-
-
Save udovichenko/ffaae36eacc88640d2a5fdc5188cba41 to your computer and use it in GitHub Desktop.
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 | |
git clone https://github.com/udovichenko/git-test | |
cd git-test | |
echo ".idea" > .gitignore | |
mkdir "inc" | |
echo "1" > inc/f1.html | |
echo '{include "inc/f1.html"}' > index.tpl | |
git add . | |
git commit -m "basic structure" | |
# open https://github.com/udovichenko/git-test with your IDE | |
git checkout -b "f2" | |
echo "2" > inc/f2.html | |
echo '{include "inc/f2.html"}' >> index.tpl | |
git add . | |
git checkout master | |
git checkout -b "f3" | |
echo "3" > inc/f3.html | |
echo '{include "inc/f3.html"}' >> index.tpl | |
git add . | |
git checkout f2 | |
git commit -m "feature 2" | |
git push origin f2 | |
git checkout f3 | |
git commit -m "feature 3" | |
git push origin f3 | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment