Skip to content

Instantly share code, notes, and snippets.

@gabriellett
Created February 19, 2018 11:52
Show Gist options
  • Save gabriellett/efb157d71306e50096fc9f075ce2cd96 to your computer and use it in GitHub Desktop.
Save gabriellett/efb157d71306e50096fc9f075ce2cd96 to your computer and use it in GitHub Desktop.
change_user() {
current=${PWD##*/}
user=$1
git remote set-url origin "https://$user@bitbucket.org/bionexo/$current.git"
cp ~/git_credentials/$1 ~/.gitconfig
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment