Skip to content

Instantly share code, notes, and snippets.

@VincentTrotot
Created March 1, 2023 22:02
Show Gist options
  • Save VincentTrotot/44c02df653f743cf371255352ffe12b0 to your computer and use it in GitHub Desktop.
Save VincentTrotot/44c02df653f743cf371255352ffe12b0 to your computer and use it in GitHub Desktop.

Utiliser un dossier local comme dépôt distant

Dans le dossier Creative Cloud

mkdir <nom du projet.git>
cd <nom du projet.git>
git init --bare
git symbolic-ref HEAD refs/head/main

Dans le dossier de travail

Si le dossier n'est pas encore un dépôt

git init
git add .
git commit -m "Premier commit"

Définir le dépôt Creactive Cloud comme dépôt distant

git remote add <nom du dépôt> <chemin/vers/le depot/creative cloud/nom du projet.git>
git branch -M main
git push [-u] <nom du dépôt> main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment