Eclipse下使用git向一个分支同时推送多个项目

论坛 期权论坛 脚本     
匿名技术用户   2020-12-30 18:33   11   0

将项目转git

右键——team ------share project

弹出的窗口,选择Create,如果是多个项目推送到一个分支,那么每个项目都要选择同一个git目录

每个项目都重复以上步骤。

接下来右键,选择team-------add to index,(添加索引的意思),每个项目都如此


右键选择team----commit提交到本地,每个项目都如此


接下来打开window 找到git---configuration 选择repository settings在location处选择open,在里面写:

[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = http://nstlab.cn:12345/SheBao_Backgroup.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "shebao"]-----分支名称
remote = origin
merge = refs/heads/shebao---分支名称

右键switch to------new branch 创建分支

选择team--remote--push-----source ref下拉选择上传的分支,点击后面的add,----next-----finish





分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP