Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
tibo
/
mygitflow
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
202511211253
develop
Thibaud
1 mese fa
parent
ac3003b23e
commit
8483b06342
2 ha cambiato i file
con
12 aggiunte
e
5 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+5
-2
git_01_quick_commit.sh
+7
-3
git_99_status.sh
+ 5
- 2
git_01_quick_commit.sh
Vedi File
@ -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
Vedi File
@ -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
Scrivi
Anteprima
Caricamento…
Annulla
Salva