欢迎来到天天文库
浏览记录
ID:32677011
大小:446.78 KB
页数:16页
时间:2019-02-14
《工作区导入git仓库操作步骤》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、工作区导入git仓库操作步骤(开发人员)1•生成ssh密钥对着空白处右键,选择gitbashhere,弹出git客户端命令窗口。1・•设置上传人员账号和邮箱设置全局账号gitconfig・-globaluser.name"liny"设置全局邮箱gitconfig-globaluser.email"liny@github.com〃2•生成ssh密钥ssh・keygen・trsa・C"inv@github.com〃修改为你的邮箱,之后会耍求确认路径和输入密码,默认的一路回车就行。1•默认生成路径在用户目录・ssh下,如:C:Usersliny2.rsa是私钥,id_rsa.pub是
2、公钥,打开id_rsa.pub,复制里面的key给git服务器管理员,在仓库服易上进行配置,过ssh验证通信,否则连接不了git服务器。注意:window客户端输入git命令出错。打开windows的cmd,输入git提示"不是内部或外部命令,也不是可运行的程序”,在我的电脑环境变量path添加git安装路径,例如:C:ProgramFilesGitbino2•开发工具配置ssh打开sts开发工具,window-preferences,选择密钥生成的路径,搜索ssh,并将私人密钥添加进来。3•建立工作区1•从远程仓库克隆工作区,右键选择importoSpring・Spring
3、ToolSuite・竺出GDU□、©€川cEditSourceRefactorNavigateSearchProjectRunWindowHepT?半PackageExplorer6ServersMServers口OBootOwMbbord口□OConsole話i*」d•:e-=Noconsolestodisplayatthistime.New■ShowInAlt+Shift+W►CopyCtd^CCopyQualifiedNamePPasteCtd>V11[匕Import-RefreshF5WvotditcServerDeveloperEd百onv3.1;S*ppr-2•选择gi
4、t~Projectsfromgit3•选择cloneURISelectRepositorySourceSelectalocationofGitRepositoriesl严Back」Next>FinishCancel4.URI填写要克隆的远程仓库的地址:ssh://git@192.16&31.206:22/homc/git/dcmoSito.gitSourceGitRepositoryEnterthelocationofthesourcerepository.Host:192.168.31.206Repositorypath:/home/git/demoSite.gitConnect
5、!onProtocol:ssh22Port:5•如果在生成密钥路径下・ssh没有known_hosts文件,则会弹出如下窗口,选择yesBranchSelectionSelectbranchestoclonefromremoterepository.RemotetrackingbrancheswillbecreatedtotrackupdatesforthesebranchesintheremoteBranchesofssh://git@192.168.31.206:22/home/git/rnyproject.git:QuestionTheauthenticityofhost*1
6、92.168.31.206*can'tbeestablished.RSAkeyfingerprintis23:2f:c5:fd:0f:87:dl:c9:22:2b:04:40:2a:el:72:66.Areyousureyouwanttocontinueconnecting?SelectAllDeselectAllINoCancelGettingremotebranchesinformation凰7、fromremoterepository.RemotetrackingbrancheswillbecreatedtotrackupdatesforthesebranchesintheBranchesofssh://git@192.168.31.206:22/home/git/myproject:typefiltertext~n^'HEADj:*N為develop□masterSelectAllDeselectAllFinishCancel7•选择工
7、fromremoterepository.RemotetrackingbrancheswillbecreatedtotrackupdatesforthesebranchesintheBranchesofssh://git@192.168.31.206:22/home/git/myproject:typefiltertext~n^'HEADj:*N為develop□masterSelectAllDeselectAllFinishCancel7•选择工
此文档下载收益归作者所有