Ceci est une ancienne révision du document !


Git

S'il existe déjà un dépôt Git, le cloner :

git clone --bare --shared my_project my_project.git

Sources : Getting Git on a Server et Git bare vs. non-bare repositories

Sinon, créer depuis les sources :

mv project project.git
cd project.git
git init --bare --shared
git add .
git commit -m 'initial commit'
$ git remote -v
origin  //Efiles.feel-it.mad/xanit/sources_dvpt/git/gdm/commerce/bonkdostor-gdm (fetch)
origin  //Efiles.feel-it.mad/xanit/sources_dvpt/git/gdm/commerce/bonkdostor-gdm (push)

Sources : Working with Remotes

$ git remote set-url origin "///Efiles.feel-it.mad\xanit\sources_dvpt\git\gdm\ecommerce\flux-probance.git"
git filter-branch -f --env-filter \
    'if [ $GIT_COMMIT = ee75eb2698bb3c2da694eb3599ad7a990999d1f3 ]
     then
         export GIT_AUTHOR_DATE="Sun Feb 09 22:00:00 2014 +0100"
         export GIT_AUTHOR_DATE="Sun Feb 09 22:00:00 2014 +0100"
     fi'

Source : http://stackoverflow.com/questions/454734/how-can-one-change-the-timestamp-of-an-old-commit-in-git

ssh login@ssh.cluster006.ovh.net
#Sur le serveur OVH
mkdir -p ~/sources/nom_projet.git
cd ~/sources/nom_projet.git
git init --bare
#En local
cd ./nom_projet
git remote add ovh ssh://login@ssh.cluster006.ovh.net/home/login/sources/nom_projet.git
git push ovh master

Source : http://wiki.rezo-zero.com/index.php?title=Cr%C3%A9er_un_d%C3%A9p%C3%B4t_nu_sur_OVH&oldid=657

  • memo/git.1416779491.txt.gz
  • Dernière modification : il y a 11 ans
  • de Arnaud Jacquemin