Initialiser git sur un projet django préexistant
Bonjour,
je dois initialiser git sur un projet Django déjà existant. Ce projet a été devéloppé par une seule personne à l'origine, mais a pris beaucoup d'ampleur et d'autres développeurs vont se joindre au projet, d'où la création d'un git.
Le projet est sur un réseau hors ligne, sur un serveur déjà accessible par SSH. Ma question est, quelle est la meilleure méthode d'initialisation entre :
- Créer un nouveau dossier django.git dans lequel j'execute un git init --bare, puis push le projet du serveur sur ce repository, et enfin clone le repository sur les ordi des devs. Dans cette option, on est d'accord que je vais devoir git pull sur le projet existant pour afficher les mises à jour des développeurs ?
- Initialiser le repository directement dans le dossier existant, mais j'ai essayé j'ai des problèmes de push quand la branche sur le serveur est sur master. J'ai pas l'impression que c'est la bonne méthode.
J'ai déjà effectué des recherches mais n'ait pas vraiment trouvé, d'où ma demande ici. Je précise que je suis un débutant de git, je connais les commande de bases mais pas vraiment la bonne architecture ou la bonne façon de faire.
Je vous remercie d'avance pour vos retours éclairés.