Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 12948  / 3 Years ago, wed, may 5, 2021, 2:13:33

I'm developing a project on my desktop and I'm in need of a version control mechanism.
I'm working on ubuntu 12.04, desktop edition.



I would like to have a git server installed on localhost and also the client will be installed in the same computer.



It's easy to install the client but I can't find a full explained guide of how to install the server..



I found a guide of installing gitosis but it's no longer supported (not supported on ubuntu 12.04)


More From » 12.04

 Answers
5

You shouldn't need to install a Git server on your local machine to work with Git. Git is a distributed version control system (DVCS), ss such there really is no idea of a Client and Server. Instead you just have clients, as many clients as you want, which can talk to each other.



So when you type git init in a directory and create a git repository, you've got all you'll need to commit, merge, branch, and ultimately use git. For all intensive purposes, this is the master source, the "god" source, equivalent to the SVN server. Unlike in subversion, where there is a centralized source, only one true "god"/master copy, Git works in a way that everyone who clones a git repository has their own "god"/master copy. So when you share code, each person gets the theoretical equivalent of an SVN server on their machine in the form of a portable git repository. This strongly differs from the centralized model (and lends to it's distributed nature) where if your source becomes deleted it does not affect anyone else. In fact if you lose your source you can clone from someone else who has a copy of the repository and continue as if nothing happened. So long as N+1 people have a copy of the code, if all of N lose it the code will live on.



What most DVCS tools provide is a flexibility of workflow. Many people adopt a centralized workflow using services like GitHub or Bitbucket to host a remote copy of their repository. In this setup there is still fundamentally just two git repositories. One on your machine and one on the services remote servers. I strongly recommend reading the free git-scm book before getting started to familiarize yourself with what git is, how it works, and how to use it.


[#33850] Friday, May 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
earxcept

Total Points: 310
Total Questions: 115
Total Answers: 111

Location: Japan
Member since Sat, Oct 2, 2021
3 Years ago
;