How
to install github and deploy it in through local
note:
free account is viewable by public and paid services are private
Install
your github in your local pc
$sudo
apt-get install git-core
here
create your username and email here to get the passwd cache in your
mails
$git
config –global user.name “your name here”
$git
config –global user.email “your email id”
$git
config –global credential.helper cache
$git
config –global credential.helper 'cache –timeout=3600'
Then
login to github.com with your id
Then
create a repository name as some exleazand some discription then
create the repo
Then
create a key in your local system
#cd
.ssh
#ssh-keygen
-t rsa
then
key will be generated then copy the key in id_rsa.pub and copy it in
github >> account setting>>SSH keys here add ssh key
enter then paste the key with the name
then
go to local system where you developed the apps
after
going into that project developed path type this command
#git
init
here
it will generate a hidden folder .git
#git
add .
This
command will gather all the file together
#git
commit -m “message”
then
go to git hub account and your repo it will show a link with http and
ssh then copy the ssh link like as this Ex:
git@github.com:224466/exleaz.git
type
this command
here
exleaz is a name which you are giving to the file
#git
push -u exleaz master
here
it will dump all your local apps in to the git hub
if
you edit the file in github and want to update that to your local
then
#git
pull exleaz
it
will get all the update copy to the local
note:
when you type this commands you should go to the path where your
local apps where uploaded
if
you would like to dump all the apps into local
#git
clone exleaz