Advertisement
teknoraver

git mclone

Mar 27th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. ghuser=teknoraver
  4.  
  5. upstream=$1
  6. repo=${upstream##*/}
  7. local="git@github.com:$ghuser/$repo.git"
  8.  
  9. git clone "$local"
  10. cd "$repo"
  11. git remote add -f upstream "$upstream"
  12. git remote set-url --push upstream ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement