Skip to content

Instantly share code, notes, and snippets.

@javierfernandes
Last active October 5, 2018 12:49
Show Gist options
  • Select an option

  • Save javierfernandes/9aef1c22a30e4a3d988cadc664a1f11a to your computer and use it in GitHub Desktop.

Select an option

Save javierfernandes/9aef1c22a30e4a3d988cadc664a1f11a to your computer and use it in GitHub Desktop.
Pull Requests para revision de entregas
#!/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