版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Gitlab使用手册1.注册用户1.1注册用户打开浏览器输入gitlab服务器地址,注册用户,如下图GitLb 社区故bhftjt井和事牛询坊卜出昌冷詡已刁耳艮“誌申事”苹 ft PtVfl-也山存 -F 怜1.2初始化ssh密钥并配置到账户M tNSW64:/c/U5 er s/A dministratorI = 1 EAdin-iniitra+orPC-20171211 mQS git confng 亠一global *wslAdmini s.tratorPC-20171211ICXJQ 7U64 *S g*it config -global user. emai 1
2、W51生成ssh密钥,如下图S ssh-keyq&n -t -C wsl pang0163. cotn*Generati ng public/pr1vate rsa key pai r.EntEr fi 1 e i n which ta save the key (Jc/Users/Adn-! nf strator/ ssh/rdr.aO ; Enter passphrase emp+y for nc passphr己2亡j:Enter same passphrase agairiaur identification haE been saved in /c/Users
3、/Administrator/,S5h/id_rsa, Yaur public key has beenin /c/Users/Administrator/*予EhAicLFsa.pub.The key fingerprint is:SHA256:6cyig8rr3XZKOjtQUaqqxCKVsGlgW8-oLj7Q4urYHqqs wl pang&L61. comThe: keys randomart image 15:* R5A 2 CM 8Im. II# iI II。II +.SoI0=0+ -j.Q&X=+ o_I E5=.c.o.十5HA256+到系统用户目录下找到.ssh文件夹下
4、复制id_rsa.pub文件的内容宜4世耐里 iV) LAT香云:i牛三ZJ17/12/1B LL彗-5UE真匸二由诽二配置gitlab的ssh密钥5Sii用輯L冀;nilpwg 143 .com 剋斟勺闫:U1T-U-19 037L”it .ai则 H/A2.新建项目2.1创建用户组T :尸 IF ifil亍J厂曰事H訓惜好;.1 ?Fr劉-H商庄笙理在扯ssh葩麺*yih-cta.-.-.-zj W ;47-5-1 ;-r:乞丄-亍出r .二匸】叙 F 丄訓-j I-:-;匚.-:|Z 匕吃: !- I-:: . !.?.:/.:?, :.- - J- j-心.丫 U j:武g二gMlQC
5、iU E拆HKM UF钟“野81痕坤2”齐何FrO/aM:M北歸认7乩#1心0!八刃Hu加 F型!虫!? QTMEJXaSTOCllC 5w4nZBCT0BftWiKYkMltJlf59t U5pS It 环飢 M hlUGW斗JGMG1 H | i - _ ; :、 i_ r - j- - _,!i 叮,-罩 pngiitHT您町耻弓TT$弭趣悅i W : td : l f ;卯:d f ;已3 ; td ; E : tit :右,:2 : H : % :卄:5仁 JJifh-诃料2(血話聞谢Bj追幢此軍帕“mm唸甲4ql iihli 0-f*3Hm宅阿dVetwarWEHEH6UIOLjE
6、y/WcyVrrgl 7i WMMJLZqCKF口MMUtfSDLmcH p2Vj q 誓 POIDasz IVJgolknJb KZqdUF6TZM|KyMRJ5AKPIKCF-I1 t-FE 0.121 MVMrPnV75C*lwq50E:/W XHudMRMhrn r *qi tJyjtJizstiac ircswihzb 携 t sbrzj tkjflc*kJ& Ji弓只 ikicbi tstncwiKiT u 4KjraljlIfpL如rqQILLPtACHrnriX叭貶們再号内押叶|AM)n伽逮TrifTUDbd 卩 angilO3 .C DT首先创建用户组,便于创建项目时可以给项
7、目指定组9 Ulin M |3|*. - 3H.AI TO $ pwnu 險 如.-JD jrj -dvrfalofidnMjpfHMr3 加/时刮 gagr卑14日环商1吕晋叵纠y 瓷创看崔晡胃弋目帕旳可 n-巨齐卄幷坤日則mii*ihatfa S- - Itn?时fl Ims fli3T 2 rTTimji 林2.3新建项目新建项目时根据需求选择可见等级( Privatenternal,Public )取目flp. 19i 曲$*dewvtpjrais命hir.i件曲朗贯目前s:干同一 1、宙屯空mr爭创祁召9A9RCGcH曲 曲SC. Y宰七liqixG 琢严匚a#F3莊ns mast
8、erBranch master set up to track remote branch master From origin上传本地项目成功,如下图test Project Star D Pork Q SSM 丁 it 192.15B ,5.2 S4:deel D(Lro up* J. 丰 A Slotial *tcsPrcreci,掘,弭用W Wfhwilin ccwruAWl J r mirs 130? ntl biXt :in B 1血:a=-1 rjp 口Q FiriQl -fjl$比;|tgr土 dLieiidM rMan#Last ” m iltUfciQL3SI Updaie
9、 In stall New SoftwaredMN- He-p-VEC-ipse Markefp-aceEe ipc Viarketp xEd ipslipse Marketplace二 ESelect sdutioni to 帛stall. Pfm5 Install New to proceed with mstdllaticin, Pre i c th# mor# info1 fink to I Mm mar# ibcui i solution.RffcentPopibhr FawritBJnctal ed Edlpse N&ws ettr: Cspel a MBE eoluti.Sear
10、chfind: tghGon cole 13All MarketsAlli Uateg criesConsole is a Git console for ne Edlipse DE Gt 匚ommands can be entered direrty irto theEc Console VIcvm and display th&ir output witfiin this vie4. . morg info by codaH n-?8. FPLIDI: grt二口门弓门丨巳mg it 口 rnalh: 2ilK ILO22 比t month)EGit - Git Integration f
11、or Eclipse 4.OEGit is tFie Grt integrstiDri for Eclipse Git is a di-st ri lb uted versioning system, which m ea fiie every developer ha s ful copy of all history of eweiy revision of., morg infoby EcliLtag.uiu, EPL电t jgil git dvt scm 竺|iIngalls: 4SSK i.L,29 ha montfijGitflowNight!目Gitflow NightlyNig
12、htly bji d of the Grtffow in*egrfMinn foEGitbyPLugit: git workfluw he distnbiit看詁 辛erdctTi 口jntrcjlInstalls: SJL6K (2 b:- last month Iinstall4.2初始化本地git版本库注意:添加.gitignore文件到项目根目录_JJ App. ZI3 Apppublic static void nai Clrl+Ahl+5bift-DcwvnApply -atch.B|* h/arkco 7j Properties tfistPrjS matterShow in R
13、emats SyEterrE vimvrVelidleteCovaragci AcRun AsDebikg AsPngfiil-c- AsRestore frorn LdcjI History.NWenTeamCorn pa re WrtlrConfigure SourceSprirg TootPrapcrtsRrfnouir fir rT_i初始化本地仓库(git init)到此步,就成功创建GIT仓库。但文件夹处于untracked状态(文件夹中的符号” 示),下面我们需要提交代码到本地仓库,如下图 eclipsePrj eclipsePrj NO-HEADD 爲.gitD D .sett
14、ingssrc a main鸟a java厶 & a comG?* xrzj eclipsePrjApp.java0 GtestD targetXj classpath肆gitignoreXj .project血:pom.xml4.3添加项目到git暂存区clipsePij2 eclip5ePrj2 MO-HEAD* settingsJ .型 &rcJ Lg mairr丿 i-fl java丿叵com . a血J 4 eclipse 母 Appjava-t? St:w怡巳秋.classpath您.projectpom.xiYil4.4提交到git本地仓库匕 Project Ezplorer J
15、二-Hnvigatcr 團. 乌 gitNew占“ttii护尿nfcoOpen in 科cw 谢胡sr”务.main已 Copy,遢* JAVAPaste comJ Lzr *r:)(DeleteJ t MovCi.QRename rf.l E, test如 Import,:占 targrdJ Export.,.clasEpfftri& ,g;t ignoreEelrKhK .projectdo* Prajedt?lo“ UnrHatiil 叶叶E# tJ tc-vtPrnjerir-A “tting$Sbcy/ir in Remcitt Sylvm virw&JITVolidabr 占 ta
16、rgtTCcfvrrag? 戌,也农la刖|础Rom %s, .ghigneroDr bug A 5.巴.prPusi Era rch Waiter 亠PulPul,RemoteSwitch ToAdM4nc$dlSyirchrcnie- JVnr(员匚已Mrge Tod%.M er ge.,Rcb4W-!i-.亍 KC3CtiCreate Patdi.kApplly Patch h-弓 Add to Irnieji札 Ignore卜JJ 葺 hrwu n HilEry卜 唸.ShmAi ifi Rjeposrljoriei J9k 卑T Di wonnwt注意:一定要添加备注,如下图.PET
17、 ” J-可 IJedrfi E 人年.TiM 4 tii-iJih M二 4n呼d 呂 JEWF-扌Gfa Vvp*IMi $11 * MNpwhj |MOHADlEbn|Mi -i rtEinr4*ri 詆CiomiwL.k 护亠-nr E# n5 InwCzer - Nf* Aflndc*-ffl# 帕咼 UpWClflPmIi inarchDb-etIhMChM SwKh Itrr ziori.* i斷斷Adv MW MxpEft_棘 lynchrqri WMIPKCFlawla旳4 T峥“Faifh IFfcwn .CIoh PnjrrlCkM Wnrcted弘at i Refnol
18、f- SyBteTr-t 询zL.予*jgncF.lk: nc mjml d 4 XiPpjE itrfliw * ocDe-ajg 血4皿溝m dmF-ath-.gigrrirefiwefr 扯r Lcfli RlstmyIt iqiC51 刖欄 WrhRebel-.5即J 5le in 股to 瞎 SIhSw in注意:使用ssh上传不用输入密码,如下图(相当于git remote add origingit54:developGroup/eclipsePrj.git )Port:Destination Git RepositoryEnter the location
19、 of the destination repository.LocationURI:ssh:git1921685254/developGroup/testPfjgitLocal File.旦 ost:54Repository path: developGroup/testPrj.gitConn ectionProtocol:FinishCancelSB Push to: ssh:/git54/developGroup/eclipsePrj.gitPush Ref SpecificationsSelect refs to pushDestinatio
20、n ref:Add create/update specification Source ref:0q*J *Add SpecHEAD|master branchRemote ref to delete:Add SpecAdd predefined specificationAdd Configured Push SpecsAdd All Branches SpecAdd All Tags SpecSpecifications for pushForce Update All SpecsRemove All SpecsFinishCancelSB Push to: 5sh:/git192.16
21、8.5.254/developGroup/eclipsePij.gitPush Ref SpecificationsAdd thisSelect refs to pushrefs/h ead s/m a ste rrefs/h ead s/m a ste r4? Add SpecDestination ref:Add delete ref specificationAdd create/update specificationSource ref:Add SpecRemote ref to delete:*Add predefined specificationAdd Configured P
22、ush SpecsAdd All Branches SpecAdd All Tags SpecSpecifications for pushForce Update All SpecsRemove All SpecsFinishCancelRepository ssh:/git54/developGroup/eclipsePrj.git Can cel push if result would be different than above because of changes on remote 門 Show dialog with result only when i
23、t is different from the confirmed result aboveFinishCancelBua=NIIUJUiDJ 1$叮o6e jkvuae-*uTJdEP甲盂 wg4rrrr “爭创 pq 帆.esnrtl JDT IZ/TJacirgL.sgli曙 Aerwis Mger!Archer typmm 口 isc 门近nry ErrDrE/wEil1 亍 4In 33 n5-fi_m Java mmHtogrlb=!-,o_ LisKyc-m Mapping mp-atG U$F unts-lrrc:皿 匚诂niF shnttinjg# VIgviur口云nave
24、ry4.nJIta-仃 g URLOpe JJd Dwn- Bmd Fflli p$h rg _3T)r h s -仃 gF mltsild iDfr:i、pnp YednlB.corn巾knnBIInstall m2e connectorsSelect updates and extensions to install. Press Finish to proceed with installationPress the information butt on to see a detailed overview and a Ink to more information.1m|Find:0
25、 | A RunTDcbugj Q? Taksu * ll n : 1 =a 丄 :. .l. v BackCancelCheck out as Maven project from SCMTarget LocationSelect target location and revisionSCM URL git !t 54:developGroup/test 7j Check out 旦ead RevisionRevision:V Check out All Projects b AdvancedFind more SCM connectors in the m2E Ms
26、Hc&tplaefinishCancel5.3添加文件到git暂存区 鮎-clip百兰*j eclipserj mister) I,;弓.iftUiri止 “I * rinA javapackage CuOi* 况盂_j tstPrcject;4 古 HllMJblic clais Apppublic static void imin( StrinifTf海Z2 javad 呑 com*込j 口 ecliDstfli AppCpmOpellSy=;frprrprin+ln(N .cld-sspjsth話 _gihgnore耳.pfqjeciv. pom.xrr,il d 2- terojjrc
27、t trtPTjjrtr-厶-*iettincj5j匚寸maFnJ 吕 java d Q comJ k 如工呵 麻*PFCppyPaste- OelfftD Muve.i.Re-nime-.nnflIe pwt rprrt.MFLefreshShew in Riflnot# SyvtrilTrnmCOfr-ipjr* V/ilhReplace WithpTae-irliRemove from CovertMarc 白!: Lardmar:* fnmm*.,epos tc ryAckancedlMr-Ttje loci.ihow Lol H ?to*yAdc t 4D&EHjg 加Profile
28、 A酯6 tti targetr 丄小呼打 母itiywt .H eject i*-1 pcmuiETwm卜| ShHt * 氐财nShow Loir4iM :lu工 tajM .Cpn-nar 頁1霏j 1- eclipePg eclipePrj master已 cuttingsJ 乌 srej 耳 main丿 / javad 2 com丿 $ eclipserj 出匕Pij列孑 国 Testjava4 色 testJl 日 javaJ COm .霜标枚爰提交咸J乌xrj 功/ 為 eclipsePrj打 AppTest.javs5.5推送到远程仓库d 0F C0ip9 fKlpPij 叫肯
29、叶 Ji广 .settiii沪*切远* q main* g |1A3 內* KH1鼻kv Bvq|e|Striojf J* L ec ipse2 rj山 pp pv* ktwm# |Ei com号 Jirqd 缶rhpMjNowpanOppfl Wilh)i3如0楫 .IEEAEh 总样g 网曲mL pcm.nl嗨*咗曲10101辰痢口jeT HI/- Ertii 呻 远聞c上 5 jje丿* tarn kJi h 眄* I.电 TDaeteRer 週 me.|rv)(bG|LrE st ponSbcw in AenlT Sjiljerr viwWiAdMrProfile Ati Wjw er
30、cicM;& targeti tl”嘶由TtamCUrk* prcvcf听 poni.wwl匚 trnpM- Wkh ltpbgPTOpdfuifl-L. LaadnurfcAddinEtdrlZhu 3“l HcrayC i frite tacK-,PwK.Push Results: git192168.5.254:developGroup/eclipsePrj.gitPushed to git54:developGroup/eclipsePrj.gite4+1 &S master - master 943f8c9.de4f4b7 (1) S43f8c9a: ffff
31、:wbl on 2017 12-19 17:33:20)Message DetailsRepository gitl54 :developGroup/eclipsePr j gitOK5.6解决文件冲突远程服务器文件如下图:2ib 2甘 r何 Orff tMTfrr,pjblici*wt4MAIk tralk wifi 怡Iw IC专靜W-Mft “fIfbTlM Ntll.4 WirlLai R*ll- h ivranilnl Hfllfl itarllid PiiviT HScan.Dijit. if In Tlnll haII-h 鼻0!%本地文件如下图:4packa
32、ge com.xrzj.testPrj;/ dg -dgF *T1 Hello world!4 jf/public class App public static void main( String)(5ystem.out.println( Hello .ofld Pul )- 5ystem*c(Jt卩广:111七1|1( TfIIc b 1 d Pusk ); System,out * printIn()jSystzem_-oui .println( 心-丸屮, )JPush冲突文件如下图:com.xrzj.restPrj;* Mello world!public class AppPush
33、 to branch in remotepublic static void main( StrinSystemw个println( * le-lo System.ouf.println( ” Systrm.Otft.println( r,.);Sy$tem.o/t.println(M4 kOrtinatior:Sect a resole and name the branch shcvld have in the e(note.Show z远上“山卜dh ogcoe.xrxjridpublic class Apppublic static void Min( StrNth Coftflrwa
34、ttofiCcrimi OlcnUr evpected pushSystem0/余pin*】c(- Sy stem.print ln(,Sy5temo“e广丄ntlrj( J); System.Oi/t-printlnf * si .Q(9Romo* ;txig.ir艺匕J役三豊建16J:2M/(5e%e ?匹!?处铁!也毬Bra nek master/IConlurw up5ftrm for purd pjlWhen pulhrg: Mergeforce owMrrte or ar ch m remete if it wsU Aid has dnrrredMsb9 DetachRepositoryssh:/gitl54/developGroJ3/te3tPr j .gx.CaI peeh if rowk wodd b ditfaK 山e Above bCAK of vMmx on mmou Show dia ShwK, k kfrerw ilw cofirmd reoJt abev
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 建筑工程施工测量方案
- 体育馆消防安全管理制度
- 安全监理在装修工程中的应用发言稿
- 艺术培训班收费公示制度
- 电力设施突发事件应急处理预案
- 航空零件供应质量审核制度
- 高端酒店招商策划方案
- 2024至2030年中国赛诺吗嗪数据监测研究报告
- 2024至2030年中国祁门红末茶数据监测研究报告
- 2024至2030年中国柳仙米数据监测研究报告
- 数据库安全事件响应机制
- 涉侨法律知识讲座
- 少先队辅导员笔试题
- NCCN成人癌痛指南
- 地面沉降干涉雷达监测规范
- (许济洛平)洛阳市2023-2024学年高三第二次质量检测 英语试卷(含答案)
- 医院培训课件:《重症患者安全转运》
- 浙江财经大学文华校区改扩建工程项目环境影响报告
- (完整版)农业经济学试题及参考答案
- 职业院校技能大赛教学能力比赛备赛经验分享如何对标备赛
- 红十字应急救护培训教学:创伤技术
评论
0/150
提交评论