Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Inscrição
Iniciar sessão
tibo
/
mygitflow
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
202511211253
develop
Thibaud
há 1 mês
ascendente
ac3003b23e
cometimento
8483b06342
2 ficheiros alterados
com
12 adições
e
5 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+5
-2
git_01_quick_commit.sh
+7
-3
git_99_status.sh
+ 5
- 2
git_01_quick_commit.sh
Ver ficheiro
@ -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 ficheiro
@ -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
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar