Last active
October 6, 2018 17:45
-
-
Save zaneneuschuler/5a294f486a0e1df3dab931e4675686dc to your computer and use it in GitHub Desktop.
random shell scripts i made to make my life easier (yes i know makefiles is basically init-repo shut up)
This file contains 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
echo "What's your github username?" | |
read userName | |
echo "What's the name of your github repo?" | |
read repo | |
git clone https://github.com/$userName/$repo.git | |
cd $repo | |
git remote rename origin github | |
touch index.html | |
mkdir -v assets | |
cd assets | |
mkdir -v css | |
mkdir -v javascript | |
mkdir -v images | |
cd javascript | |
touch app.js | |
cd .. | |
cd css | |
touch style.css | |
cd .. | |
cd .. | |
git add . | |
git commit -m "Initial files" | |
git push github master |
This file contains 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
touch index.html | |
mkdir -v assets | |
cd assets | |
mkdir -v css | |
mkdir -v javascript | |
mkdir -v images | |
cd javascript | |
touch app.js | |
cd .. | |
cd css | |
touch style.css | |
cd .. | |
cd .. | |
code . |
This file contains 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
echo "What branch do you want to catch up?" | |
read branch | |
git checkout master | |
git pull | |
git checkout $branch | |
git merge master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment