21 lines
514 B
Batchfile
21 lines
514 B
Batchfile
# 1. Initialiser le dépôt dans le dossier sain
|
|
git init
|
|
|
|
# 2. Configurer ton identité (si pas déjà fait)
|
|
git config user.name "Almeyric"
|
|
git config user.email "almeyricc@proton.me"
|
|
|
|
echo "*.tfstate" > .gitignore
|
|
echo "*.tfvars" >> .gitignore
|
|
|
|
# 3. Ajouter tes fichiers
|
|
git add .
|
|
|
|
# 4. Premier commit
|
|
git commit -m "Initialisation de la structure Infra-Lab"
|
|
|
|
# 5. Ajouter le lien distant
|
|
git remote add origin ssh://git@192.168.76.10:2222/Almeyric/infra-lab.git
|
|
|
|
# 6. Pousser vers Gitea
|
|
git push -u origin main |