Skip to content

Instantly share code, notes, and snippets.

@isao
Created July 25, 2012 01:13
Show Gist options
  • Save isao/3173789 to your computer and use it in GitHub Desktop.
Save isao/3173789 to your computer and use it in GitHub Desktop.
use this to add the remote origin oh github based on the cwd
#!/bin/bash
git remote add origin git@github.com:$(git config --get github.user)/$(pwd).git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment