Table des matières

GitLab

Voir aussi: git, Gogs

La version 8.5 déchire !! C'est vraiment hyper efficace.

Installation

Problèmes rencontrés

$ ssh git@git.comptoir.net
PTY allocation request failed on channel 0
Welcome to GitLab, Anonymous!
Connection to git.comptoir.net closed.

Après correction de gitlab_url :

$ ssh git@git.comptoir.net
PTY allocation request failed on channel 0
Welcome to GitLab, Cyrille Giquello!
Connection to git.comptoir.net closed.
#config.action_mailer.delivery_method = :sendmail
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
    :address => '127.0.0.1',
    :port => 25,
}

First project

Solution #01

GitLab first project

Git global setup:

git config --global user.name "Cyrille Giquello"
git config --global user.email "cyrille@giquello.fr"

Create Repository

mkdir essais01
cd essais01
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@git.comptoir.net:cyrille.giquello/essais01.git
git push -u origin master

Existing Git Repo?

cd existing_git_repo
git remote add origin git@git.comptoir.net:cyrille.giquello/essais01.git
git push -u origin master

Solution #02

$ git clone git@git.comptoir.net:cyrille.giquello/essais02.git
Cloning into 'essais02'...
warning: You appear to have cloned an empty repository.
$ cd essais02
$ touch README
$ git add README
$ git commit -a -m '1er commit'
$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 210 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@git.comptoir.net:cyrille.giquello/essais02.git
 * [new branch]      master -> master