follow the instructions here.
Install hub
# install dependencies
sudo apt-get install rake
# clone repo
cd /tmp
git clone https://github.com/github/hub.git
# install hub
cd hub
sudo rake install prefix=/usr/local
# alias git to hub
echo 'alias git=hub' >> ~/.bashrc
. !$
# check it works
git version
# expected output:
# git version 1.8.3.2
# hub version 1.12.0-6-g8150ddb
Create a remote repo on github
# create a repo with the name of the current directory
git create -d "My description"
# push to github
git push origin master
# create a repo with the name of the current directory
git create -d "My description"
# push to github
git push origin master
No comments:
Post a Comment