Wiki » History » Version 6

« Previous - Version 6/15 (diff) - Next » - Current version
Gateau, Thibault, 02/19/2019 02:48 PM



Create local git repository and initialize it


#create a local git server

#T1>
cd && mkdir serverTestGit && cd serverTestGit
mkdir projet.git && cd projet.git
git --bare init


#initialize it

#T2>
#cloner le repo pseudo-distant
cd && mkdir git && cd git
git clone <user>@localhost:~/serverTestGit
cd serverTestGit

#configurer l'<user> local
git config --global user.email <>
git config --global user.name <user>

#faire un premier commit et le pusher
echo -e "lorem ispum \n titi \ toto" >> readme.md
git add readme.md
git commit -m "initial commit"
git push origin master


#use it...


Useful links


Useful commands