Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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...!!!
Posted
Updated 25-Mar-12 18:42pm
v4

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
 
Share this answer
 
Quote:
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.

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900