Deploy to your test server with git hooks

Posted on 2018-09-09 in Programmation • Tagged with git, devops

You probably already wanted to have your own test environment to allow others in the company to tests what you did. Perhaps you have a common one, but as your team is growing, it is probable that the common environment is a bottleneck and you wish each developer could have …


Continue reading

A light branching strategy with mercurial and bookmarks

Posted on 2015-07-22 in Programmation • Tagged with git, mercurial

I am a contributor to nbpython the netbeans plugin for python. Since the DCVS used is mercurial and I have almost exclusively used git before I add to adapt my workflow to work properly.

What I want to do:

  • create a branch from …

Continue reading

Git tips

Posted on 2015-04-26 in Programmation • Tagged with git

This pages provides all gitips I have collected.

Rebase

Split commit

After git rebase -i, run git reset HEAD~ to split …


Continue reading

Fusionner deux dépôts git

Posted on 2015-01-17 in Trucs et astuces • Tagged with git, Linux

Récemment, j'ai eu besoin de fusionner deux dépôts en un seul. Ça se fait plutôt bien. Voilà la procédure :

# On clone les dépots
git clone projet1
git clone projet2
cd projet1

# On ajoute le projet2 comme source dans le projet1
git remote add projet2 ../projet2
git fetch projet2

# On liste …

Continue reading

Utiliser git pour gérer les fichiers de configuration de son HOME

Posted on 2014-09-09 in Trucs et astuces • Tagged with git, Linux, mr, vcsh

Depuis pas mal de temps, je gère les fichiers de conf de mon home avec git, notamment ma conf emacs et mon dossier bin. L'intérêt étant à la fois de pouvoir partager les configurations entre plusieurs ordinateurs, de pouvoir revenir en arrière en cas de besoin et de voir l'historique …


Continue reading

Ajouter un dépôt git distant

Posted on 2014-05-09 in Trucs et astuces • Tagged with git

git est tout à fait capable de gérer plusieurs dépôt distant. Voilà comment en ajouter un.


Continue reading

Mettre sous git sous Drupal

Posted on 2014-02-01 in Blog • Tagged with Drupal, git

Récemment j'ai mis l'install Drupal du projet multi assos sous git (vous pouvez aussi utiliser un autre DVCS si vous voulez). Voilà mon petit compte rendu.

Intérêt

La première question que vous vous poserez sûrement est pourquoi placer Drupal sous git ? Parce que c'est utile. Cela :

  • vous permet de suivre …

Continue reading