Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
tibo
/
mygitflow
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
202511211253
develop
Thibaud
hace 1 mes
padre
ac3003b23e
commit
8483b06342
Se han
modificado 2 ficheros
con
12 adiciones
y
5 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+5
-2
git_01_quick_commit.sh
+7
-3
git_99_status.sh
+ 5
- 2
git_01_quick_commit.sh
Ver fichero
@ -2,6 +2,9 @@
TIMESTAMP
=
`
date
"+%Y%m%d%H%M"
`
git_99_status.sh
TEST
=
$(
git_99_status.sh
)
git commit -m
"
$TIMESTAMP
"
if
[
!
"
$TEST
"
=
"GIT STATUS OK"
]
then
git commit -m
"
$TIMESTAMP
"
fi
+ 7
- 3
git_99_status.sh
Ver fichero
@ -1,7 +1,7 @@
#!/bin/env bash
TEST
=
`
git status
|
grep propre
|
wc -l
`
if
[
$TEST
-eq
0
]
TEST
1
=
`
git status
|
grep propre
|
wc -l
`
if
[
$TEST
1
-eq
0
]
then
echo
"
La branche actuelle (
$GIT_CURRENT_BRANCH
) n'est pas propre
"
@ -20,6 +20,10 @@ then
then
git add .
fi
else
fi
TEST2
=
`
git status
|
grep propre
|
wc -l
`
if
[
$TEST1
-eq
1
]
then
echo
"GIT STATUS OK"
fi
Escribir
Vista previa
Cargando…
Cancelar
Guardar