3º. 2º cuatrimestre. Itinerario de Tecnologías de la Información. Grado en Ingeniería Informática. Curso 2019/2020
git-all-fetch
npm moduleLo ideal sería tener una serie de comandos all
:
git-all-pull
git-all-fetch
git-all-status
git-all-remote
...
acepting exactly the options than their corresponding one-repo commands.
A real-life example is git-remove-token
a script I had to write to manage the downloads
of students lab with GH Classroom:
[~/.../PLgrado/eloquentjsegg(inicial)]$ cat /usr/local/bin/git-remove-token
#!/usr/local/bin/bash
git remote set-url origin $(git remote -v | head -n 1 | grep -o 'github\.com.*git' | awk '{print "https://"$1}')
This is a different task per student. A group will make git-all-pull
and another
git-all-remote
, etc.
git assignment clone ORGANIZATION/assignment-prefix
crea un repo con submodulos los repos de esa asignación
list of github students to download in a file
Crearía un repo con submódulos los repos que están en el directorio