Last active
November 7, 2016 23:32
-
-
Save Dyndrilliac/80b1b8a60ee7c15c66e280c6d752be9f to your computer and use it in GitHub Desktop.
Frequently Used Commands for Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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