GIT : Problème de clone de branche : fatal: repository not found
Bonjour,
J'essaie de cloner une branche mais j'obtiens le message d'erreur : "fatal: repository 'P3C2-Begin' does not exist"
Le projet Git est : https://github.com/amandinelemoult2109/Vue-fr
La branche est : https://github.com/amandinelemoult21...ree/P3C2-Begin
Sur mon poste, j'ai fait un
Code:
1 2 3 4 5 6 7
| git init
git clone https://github.com/amandinelemoult2109/Vue-fr
git add test1.jpg
git commit -m "test1"
git branch P3C2-Begin
git checkout P3C2-Begin
git clone --branch P3C2-Begin https://github.com/amandinelemoult2109/Vue-fr/tree/P3C2-Begin |
Et j'obtiens le message :
Citation:
Cloning into 'P3C2-Begin'...
fatal: repository 'https://github.com/amandinelemoult2109/Vue-fr/tree/P3C2-Begin/' not found
Si je fais (en sachant que cela ne pouvait pas marcher) :
Code:
git clone --branch P3C2-Begin https://github.com/amandinelemoult2109/Vue-fr
J'obtiens :
Citation:
fatal: destination path 'Vue-fr' already exists and is not an empty directory
Comment clôner cette branche ?