|
|
## `error: RPC failed; result=22, HTTP code = 422`
|
|
|
Cette erreur peut survenir si les _remotes_ n'ont pas le suffixe `.git` :
|
|
|
|
|
|
```
|
|
|
$ git remote -v
|
|
|
origin https://src.koda.cnrs.fr/mon_groupe/mon_projet (fetch)
|
|
|
origin https://src.koda.cnrs.fr/mon_groupe/mon_projet (push)
|
|
|
|
|
|
$ git push -u origin --all
|
|
|
[...]
|
|
|
error: RPC failed; result=22, HTTP code = 422
|
|
|
fatal: The remote end hung up unexpectedly
|
|
|
fatal: The remote end hung up unexpectedly
|
|
|
Everything up-to-date
|
|
|
```
|
|
|
|
|
|
Pour corriger cela, il faut ajouter le suffixe `.git` aux _remotes_ :
|
|
|
|
|
|
```bash
|
|
|
git remote set-url origin https://src.koda-rec.cnrs.fr/mon_groupe/mon_projet.git
|
|
|
``` |
|
|
\ No newline at end of file |