Upload To Git PDF
Upload To Git PDF
1>ForuploadingarailsprojectonGithub,wefirstneedtosignupthereandmakeanaccount.
2>Firstweneedtosetupgitasfollows:
i>DownloadandinstallthelatestversionofGitwithSynaptic.
$sudoaptgetinstallgitcoregitguigitdoc
ii>SetupSSHkeys:
WeuseSSHkeystoestablishasecureconnectionbetweenyourcomputerandGitHub.
Settingthemupisfairlyeasy,butdoesinvolveanumberofsteps.
Tomakesureyougenerateabrandnewkey,youneedtocheckifonealreadyexists.First,
youneedtoopenanappcalledTerminal.
iii>CheckforSSHkeys.
$cd~/.ssh
IfitsaysNosuchfileordirectoryskiptostep3.Otherwisecontinuetostep2.
iv>BackupandremoveexistingSSHkeys.
SincethereisalreadyanSSHdirectoryyoullwanttobacktheoldoneupandremoveit:
$lsListsallthesubdirectoriesinthecurrentdirectory
configid_rsa id_rsa.pub known_hosts
$mkdirkey_backupmakesasubdirectorycalled"key_backup"inthecurrentdirectory
$cpid_rsa*key_backupCopiestheid_rsaandid_rsa.pubfilesintokey_backup
$rmid_rsa*
v>GenerateanewSSHkey.
TogenerateanewSSHkey,enterthecodebelow.Wewantthedefaultsettingssowhenasked
toenterafileinwhichtosavethekey,justpressenter.
$sshkeygentrsaC"[email protected]"
vi>AddyourSSHkeytoGitHub.
OntheGitHubsiteClickAccountSettings>ClickSSHKeys>ClickAddSSHkey
vii>Testeverythingout.
[email protected]
3>Setyourusernameandemail.
gitconfigglobaluser.name"YourName"
[email protected]
4>Nowproceedtofollowingsteps:
mkdirgps
cdgps
gitinit
touchREADME//toaddreadmewithproject
gitaddREADME
gitcommitm'firstcommit'
[email protected]:dhyanbaba/gps.git
gitpushuoriginmaster
>Myuploadedprojectongithubcanbecheckedoutat:
[email protected]:dhyanbaba/gps.git
//thisapplicationisintegratedwithspreewithrails3.1version.Iamlookingforcustomizingitfor
myfutureideas.