kylestengline / scripts

Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripts

github.sh

  • This script takes two arguments: Your github username and the name of your repo.
  • ./github.sh <githubusername> <reponame>

This script will:

  • Make the directory
  • Go into the directory
  • Initialize the repo and create a .gitignore and README.md
  • Then:
  • git add .
  • git commit -m "Initial Commit"
  • git remote add origin
  • git push origin master

Notes on github.sh

  • This script uses the ssh key to push to master.
  • I'm working on ways to have users select either origin or upstream options.

bring_me.sh

  • This script opens netflix and my udemy courses for me.
  • ./bring_me.sh <nameofcourse>
  • Still working on ways to make this more dynamic for other users 01/31/17.

gacp.sh

  • This script takes one argument, your git commit -m message.
  • EX: ./gacp.sh <my commit message>
  • You have the option of adding " ", but it is not required.
  • This script runs the following:
  • git add .
  • git commit -m <your commit message>
  • git push

merge_branch.sh

  • This script merges the current branch with another branch that you specify.
  • This script will then checkout back to the branch you merged.
  • Note: You must push up to the current branch before running this script.
  • Run it like so:
  • ./merge_branch.sh <branchyouaremerging> <branchyouwanttomergeinto>
  • For example, if I'm in branch development and I want to merge into master, I would run ./merge_branch.sh development master

deploy.sh

  • Deploys to firebase or heroku
  • Run by: ./deploy.sh heroku OR ./deploy.sh firebase

loc_host.sh

  • Opens the browser and starts a local host.
  • Run by: ./loc_host.sh rails OR ./loc_host.sh react OR ./loc_host.sh firebase

About

Scripts


Languages

Language:Shell 100.0%