nagaraj sherigar
nagaraj sherigar

Reputation: 87

Need a basic working of git

Recently i am asked to move my projects to git.Can please someone tell me how to achieve the following.

i have my project in our local server, I create a local repository using git init.

Then i create a new project in git server and add the remote URL to my local repository. After that i do git push.

Now my project development is done by 3 developers simultaneously.

Now how to do i achieve this?

Suppose if i am creating a TAG after every new release.

Now if i want to give a hot fix for 4 version before my main release how do i do this?

Upvotes: 0

Views: 45

Answers (1)

CodeWizard
CodeWizard

Reputation: 141946

Git is the ultimate tool for samll groups or for large groups.

There are several ways to work with git but before that you need to know your way around and to understand what is GIT.

Im recommending you to first all to watch this GIT into - Introduction to Git with Scott Chacon of GitHub

Once you feel you know your way around start to think about the desired workflow


Git Flow

Git flow is one of the most popular git workflow out there. It has a very solid structure + scripting that does all the logic for you, it supports what you asked to have development branch along with hotfix.

It handle the creation, merging, deletion and more with build in scripts.


Now my project development is done by 3 developers simultaneously.
How to do i achieve this?

  • Every member of your project should clone the repository via git clone
  • Give then permission(s) to write (push) to the repository
  • From this point each one is working on his own copy and updating the remote repository.

Suppose if i am creating a TAG after every new release.
Now if i want to give a hot fix for 4 version before my main release how do i do this?

Git Flow does it all for you. It create branched, merge, tag and more. Simply start using it.

Upvotes: 1

Related Questions