Skip to content

Instantly share code, notes, and snippets.

@zaneneuschuler
Last active October 6, 2018 17:45
Show Gist options
  • Save zaneneuschuler/5a294f486a0e1df3dab931e4675686dc to your computer and use it in GitHub Desktop.
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)
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
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 .
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