Last active
October 5, 2018 12:49
-
-
Save javierfernandes/9aef1c22a30e4a3d988cadc664a1f11a to your computer and use it in GitHub Desktop.
Pull Requests para revision de entregas
This file contains hidden or 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 | |
| BRANCH=master | |
| # fix repo URL from https to ssh | |
| REPO_SSH_URL=`git remote -v | head -n 1 | sed -e 's#.*@\([^\/]*\)/\(.*\) (fetch)#git@github.com:\2#g'` | |
| git remote set-url origin $REPO_SSH_URL | |
| # create new branch from initial commit | |
| git checkout -b entrega-final c5e3042f72c78097a3428343478018d5996568c2 | |
| git push --set-upstream origin entrega-final | |
| git checkout $BRANCH | |
| git hub pull-request -b entrega-final -m "Revision Entrega Final" # -r javierfernandes,aitrusgit,FedeLochbaum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment