Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using git as a centralized version server

I currently use svn at work.

Our setup is: everyone has a working copy and we commit to a svn server served by apache2.

So I commit changed, the other update, and everyone can work on the copy as they wish.

So it's pretty easy to deploy.

But now, I'd like to do the same thing but with Git. Would it be possible?

I'd like to have a git repo on my main server, develop at home, commit changes to the server, etc.

Thanks for your help

like image 917
Tommy B. Avatar asked Oct 19 '09 14:10

Tommy B.


People also ask

Is Git centralized version control system?

Git is decentralized, or distributed. This means that to edit, developers download the source code onto their local machines to work and make edits, while Perforce is centralized, meaning all developers are making edits to one master branch kept on a server and accessible to all team members.

Can we use Git as a central repository?

Git provides tools to interact with the central repository using your local repository. Git provides git push command to make changes in the central repository. This command will add the most recent commits done on the local repository into the central repository.

What is Git centralized?

The Centralized Workflow is a great Git workflow for teams transitioning from SVN. Like Subversion, the Centralized Workflow uses a central repository to serve as the single point-of-entry for all changes to the project.

Is GitHub good for version control?

What are the benefits of using version control? Having a GitHub repo makes it easy for you to keep track of collaborative and personal projects - all files necessary for certain analyses can be held together and people can add in their code, graphs, etc. as the projects develop.


1 Answers

Git - SVN Crash Course

Especially this is of interest for a starter

git init
git add
git clone git://...
git pull
git fetch
git push

Then check the rest of the documentation on the git site

Git documentation

like image 179
jitter Avatar answered Nov 11 '22 04:11

jitter