TechExhibeo

Repo Create & Push

Dec 23rd, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. repo_name=$1
  4.  
  5. hub create DarkCAF-OS/platform_$1
  6.  
  7. test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
  8.  
  9. git branch 7.1.1
  10. git checkout 7.1.1
  11. git push -u [email protected]:DarkCAF-OS/platform_$1.git HEAD:7.1.1
Add Comment
Please, Sign In to add comment