HowtogetSVNinstalledandworking.docx
《HowtogetSVNinstalledandworking.docx》由会员分享,可在线阅读,更多相关《HowtogetSVNinstalledandworking.docx(12页珍藏版)》请在冰豆网上搜索。
HowtogetSVNinstalledandworking
HowtogetSVNinstalledandworking.
DownloadPuTTYgen
http:
//the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe
RunPuttyGenandyou’llseeascreenlikethis:
ClickonGenerateandwiggleyourmousearoundtheemptyspaceuntilthegreenbargoesallthewayacross.
Youshouldnowseeascreenthatlookssomethinglikethis:
Copyandpastethesshthingthatisatthetop(theENTIREbluehighlightsection)andsendittoJohannesalongwithyourloginname.(johannes.hirche@ltu.se).
NowyouMUSTsavethekeysomewhere.Soputinapasswordthereinbothpassphrasespots,thenclick‘saveprivatekey’.Saveitsomewherethatyoucaneasilyfinditasyou’llneedtoopeniteverytimeyourestartyourcomputerifyouwanttoavoidhavingtotypeyourpassword150timestoaccesssvn.
Youcannowclosedownthekeygenerater.
DownloadPaegent
http:
//the.earth.li/~sgtatham/putty/latest/x86/pageant.exe
Runthisandchoose‘addkey’
Openthekeythatyouhavesavedinthepreviousstep.
You’llbepromptedforyourpasswordyougavewhencreatingthekey.
Besuretorerunthisstepeverytimeyourestartyourcomputerifyouwanttobeabletousesvnwithouttypingyourpasswordinconstantly.
DownloadTortoiseSVN
Andsavetheprogramsomewherethatyoucanfindit.
Installtheprogram.
Decidewhereyouwanttohaveallthefilesfromsvn.
TheninthatfolderrightclickchooseSVNcheckout
You’llnowseeascreenthatlookslikethis(onceyouputinthesvnurlasshowninthebox)
Doremembertoreplacethesarcam-8bitwithyourownltulogin.
Afterclickingokyou’llsee:
(ifyouhaven’tbeenaddedintoJohannes’databaseyou’llbepromptedforyourschoolpasswordatleasttwice.Ifyouhavethekeyworking,youwon’thavetotypeinyourpassword)
Clickokagainandyou’llbebacktoyourwindow.Whichmightlooksomethinglikethis:
Greeniconsmeanyouhaven’tchangedthefilesinceyoulastupdatedfromtheserver.Redmeansyouhavechangedtheicons,bluemeansthefilesaren’tontheserver,etc.Youcanexperimentandseehowitworks.
UsingSVNonceitissetup.
AlwaysstartwithdoinganSVNupdatebyrightclickinginthewindowandchoosingsvnUpdate.Thiswillmakesureyouareworkingwiththemostrecentcopyofthefiles.
Whenyouhavechangedafileandwishtoputthenewestversionuponsvn,rightclickandchoosesvncommit
You’llthenseeascreenlikethis.Clickthecheckboxnexttoanyfileyouwanttoaddtothesvnandbesuretowriteamessageinthemessageboxatthetopwithwhatyouhavechangedandanynotesthatmightberelaventlater.Thinkifyouwanttogobacktoanearlierversionofapicture…whatisinthispicture.Itwillbeuseful!
IfyourkeyisinJohannes’database,you’llseethis,otherwiseyou’llbepromptedanumberoftimestoenteryourltupasswordbeforeyouseethis.
Nowtogobacktoapreviousversionofaspecificfile,rightclickonthefileandchooseTortiseSVNandShowlog
Youshouldthenseesomethinglikethis.Ifyouhaveactuallywrittenmessagesin,you’llseethemessages.Otherwiseyougettoguesswhatversionyouwant.
Rightclickontheversionyou’dliketogobacktoandchooseReverttothisrevision.