Git

Installer

aptitude install git
 

Configuration utilisateur

git config --global user.name "totouser"
git config --global user.email "totouser@oweteam.com"
git config --global color.ui true
 

Créer repository

git clone git@gitlab.com:totouser/monprojet.git
cd monprojet
touch index.py
touch __init__.py
git add index.py
git add __init.py__
git commit -m "add base"
git push -u origin master

Git existant

cd totodirectory
git init
git remote add origin git@gitlab.com:totouser/monprojet.git
git add .
git commit
git push -u origin master
wiki/git.txt · Dernière modification: 2018/04/25 12:35 par root
CC0 1.0 Universal
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5