Whether to manage or archive projects, GIT is a slight and powerful solution.
- You can follow the evolution of the project thanks to the messages that accompany versions.
- Each developer can have its workspace without being disturb or disturb his teammates.
- You can easily move from one project to archive project and vice versa.
The method of implementing a repository that follows is part of a startup on a Linux / Unix / Mac server. It assumes that you set your SSH server and your users are able to login.
First, install git-core package (For Mac install XCode developer tools)
sudo apt-get install git-core
To host your repositories, you have to create a space on your hard drive.
sudo mkdir /var/git
To empower user allowed to use repos, we will add an user group.
sudo groupadd git
Change access group for the folder used as location for repositories.
sudo chgrp git /var/git
sudo chmod g+w /var/git
sudo chmod g+s /var/git
Add user to group and give him access to repos (do it for each member).
sudo adduser USERNAME git
Now, each time you have to make a new repository for a project, follow this process.
sudo mkdir repo_one
cd repo_one
sudo git --bare init
sudo chmod -R g+w /var/git/repo_one
sudo chmod -R g+s /var/git/repo_one
To access GIT repositories, you have to clone like following Classic access
git clone ssh://USERNAME@REPO_URL/var/git/repo_one
If the SSH port is different from the usual harbor
git clone ssh://USERNAME@REPO_URL:PORT/var/git/repo_one
-
MSYSGIT Windows -
TortoiseGIT Windows -
SourceTree Mac -
GIT-GUI cross platform