Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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