在本地系统上设置自定义git工作流程

编程入门 行业动态 更新时间:2024-10-17 21:23:08
本文介绍了在本地系统上设置自定义git工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是git的新手。 我要在Git中设置我的项目。 工作流程如下。 1.Client的私人存储库位于github 2.我必须将其克隆到我的本地服务器中。 3.我团队中的每个开发人员都必须将项目从本地服务器克隆到本地计算机。 4.每个开发人员在他们的本地计算机上工作,在他们完成工作后,必须进行更改本地服务器。 5.项目负责人想要检查本地服务器并查看更改,然后将更改提交到git中心。 请建议我使用git设置这样的工作流程 提前感谢您的帮助...... !! !

I'm new to git. I've to set up my project in Git. The workflow is as follows. 1.Client's Private repository is there in github 2.I've to take a clone of this into my Local server. 3.Each developer in my team has to clone the project from the local server to their local computer. 4.Each developer works on their local computer ,after they complete their work,changes have to commit into the local server. 5.The Project leader Wants to check the local server and review the changes and then commit the changes into the git hub. Please advice me to setup a work flow like this using git Thanks in advance for any help...!!!

推荐答案

我正在使用git但不是层次结构但是我已经读过一些关于它的内容。 我认为你正在寻找这个:分布式工作流程 尝试goolge git中尉 I'm using git but not hierarchical but I've read something about it. I think you are looking for this: Distributed Workflows Try goolge for git lieutenant

引用:

1.Client的私有存储库在github中 2.我必须将其克隆到我的本地服务器中。 3.我团队中的每个开发人员都必须将项目从本地服务器克隆到他们的本地计算机。 4.每个开发人员在本地计算机上工作,完成工作后,必须对本地服务器进行更改。 5.项目负责人希望检查本地服务器并查看更改,然后将更改提交到git hub。

1.Client's Private repository is there in github 2.I've to take a clone of this into my Local server. 3.Each developer in my team has to clone the project from the local server to their local computer. 4.Each developer works on their local computer ,after they complete their work,changes have to commit into the local server. 5.The Project leader Wants to check the local server and review the changes and then commit the changes into the git hub.

按顺序编号: 2.如果你'从github开始使用别人的项目并打算将这些更改推回给他们。您需要创建一个github帐户并将他们的项目分配到您的帐户。分叉后,您可以从此克隆到您的服务器。当您准备将更改推送给他们时,您会向他们发送拉取请求。基本上要求他们将您的更改集成(通过拉动)到他们的存储库。 3& 4。您的团队应该都可以从服务器的存储库中工作(从那里拉取并推送)。他们也会从那里做一个git克隆(这将是他们的起源)。所有独立工作都应该在它自己的分支上。 5.项目负责人可以通过检查特定分支并查看日志(git log)来检查每个人在分支机构上的工作情况。如果/在批准时,它可以合并到主分支,也可以保留在分支上。然后可以将新代码推送到github,并且可以发生拉合并请求。

In order, as numbered: 2. If you're going to use someone else's project from github AND intend on pushing those changes back to them. You need to create a github account and fork their project onto your account. Once forked, you can clone from this to your server. When you're ready to push changes to them, you send them a pull-request. Essentially asking them to integrate (by pulling) your changes onto their repository. 3&4. Your team should all work from your server's repository (pull and push from there). They would also do a git clone from there (that would be their origin). All independent work should really be on it's own branch. 5. The project lead can check everyone work on the branches by checking out that particular branch and looking at the log (git log). If/when approved, it can be merged to the master branch or it can be left on the branch. The new code can then be pushed to github and the pull-merge request can occur.

更多推荐

在本地系统上设置自定义git工作流程

本文发布于:2023-11-28 13:55:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642673.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   工作流程   系统   git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!