Skip to content

Instantly share code, notes, and snippets.

@Dyndrilliac
Last active November 7, 2016 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dyndrilliac/80b1b8a60ee7c15c66e280c6d752be9f to your computer and use it in GitHub Desktop.
Save Dyndrilliac/80b1b8a60ee7c15c66e280c6d752be9f to your computer and use it in GitHub Desktop.
Frequently Used Commands for Git
#!/bin/bash
#########################################
# Git Remote Duplication Script #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 09/10/2016 #
#########################################
git checkout master
git remote add drupal $1
git push drupal master
#!/bin/bash
#########################################
# Git Pull Script #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 09/10/2016 #
#########################################
git checkout master
git fetch origin master
git rebase -i origin/master
#!/bin/bash
#########################################
# Git Add-Commit-Push Script #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 09/10/2016 #
#########################################
git add .
git add -u
git commit -m "Commit Message"
git push origin master
#!/bin/bash
#########################################
# Git Status Script #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 09/10/2016 #
#########################################
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment