123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
-
- function git(){hub "$@"}
- fi
- empty_gh() {
- repo = $1
- ghuser=$( git config github.user )
- mkdir "$repo"
- cd "$repo"
- git init
- touch README
- git add README
- git commit -m 'Initial commit.'
- git remote add origin git@github.com:${ghuser}/${repo}.git
- git push -u origin master
- }
- new_gh() {
- cd "$1"
- ghuser=$( git config github.user )
- git init
-
- print '.*'"\n"'*~' >> .gitignore
- git add ^.*
- git commit -m 'Initial commit.'
- git remote add origin git@github.com:${ghuser}/${repo}.git
- git push -u origin master
- }
- exist_gh() {
- cd "$1"
- name=$( git config user.name )
- ghuser=$( git config github.user )
- git remote add origin git@github.com:${ghuser}/${repo}.git
- git push -u origin master
- }
|