informatique:gitlab
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
informatique:gitlab [24/12/2013 15:40] – Envoi des mails de notification et autres : Changé de sendmail à smtp cyrille | informatique:gitlab [10/10/2015 19:06] – [GitLab] cyrille | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== GitLab ====== | ====== GitLab ====== | ||
+ | |||
+ | |||
+ | Voir aussi: [[/ | ||
===== Installation ===== | ===== Installation ===== | ||
Ligne 12: | Ligne 15: | ||
* Manquait l' | * Manquait l' | ||
* sudo apt-get install libmysqlclient-dev | * sudo apt-get install libmysqlclient-dev | ||
+ | |||
+ | * Configuration du folder .ssh du user " | ||
+ | * https:// | ||
+ | |||
+ | * gitlab_url dans / | ||
+ | |||
+ | $ 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. | ||
* Envoi des mails de notification et autres | * Envoi des mails de notification et autres | ||
Ligne 23: | Ligne 41: | ||
} | } | ||
+ | ===== First project ===== | ||
+ | |||
+ | ==== Solution #01 ==== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Git global setup: | ||
+ | git config --global user.name " | ||
+ | git config --global user.email " | ||
+ | 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: | ||
+ | git push -u origin master | ||
+ | Existing Git Repo? | ||
+ | cd existing_git_repo | ||
+ | git remote add origin git@git.comptoir.net: | ||
+ | git push -u origin master | ||
+ | |||
+ | ==== Solution #02 ==== | ||
+ | |||
+ | $ git clone git@git.comptoir.net: | ||
+ | Cloning into ' | ||
+ | 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: | ||
+ | * [new branch] | ||
informatique/gitlab.txt · Dernière modification : 04/04/2016 18:05 de cyrille