在本地系统上设置自定义git工作流程 [英] Setup Custom git work flow on local System

查看:147
本文介绍了在本地系统上设置自定义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工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆