Skip to content

Instantly share code, notes, and snippets.

@baygross
Created November 30, 2011 20:25
Show Gist options
  • Save baygross/1410668 to your computer and use it in GitHub Desktop.
Save baygross/1410668 to your computer and use it in GitHub Desktop.
HackYale Common Terminal Commands
#### Key Terminal Commands #####
# CHECK GIT STATUS
git status
# PULL UPDATES FROM GITHUB
git pull
# STAGE AND COMMIT CHANGES
git add .
git commit -m "i just made these changes"
# PUSH UPDATES TO HEROKU
git push heroku master
#### INITIAL APP SETUP #########
# CLONE FROM GITHUB (first time)
git clone https://github.com/baygross/phoneWrapper
cd phoneWrapper
# DEPLOY TO HEROKU (first time)
heroku create name_of_application_here #or leave name blank for a standard heroku name
# RENAME HEROKU APP
heroku rename new_name
#### OTHER MISC COMMANDS ######
# INSTALL FORMAN
gem install forman
# - or -
sudo gem install forman
# LIST ALL GIT BRANCHES
git branch -a
# CREATE NEW GIT BRANCH
git branch newBranchName
# CHECKOUT DIFFERENT BRANCH
git checkout branchName
# MERGE A BRANCH INTO YOUR ACTIVE BRANCH
git merge branchName
# INSTALL NODE PACKAGES
npm install
# TO START MONGO DATABASE SERVER
sudo mongod
# TO START NODE SERVER
forman start
# - or -
node app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment