This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
tibo
/
mygitflow
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
202511211253
develop
Thibaud
1 month ago
parent
ac3003b23e
commit
8483b06342
2 changed files
with
12 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-2
git_01_quick_commit.sh
+7
-3
git_99_status.sh
+ 5
- 2
git_01_quick_commit.sh
View 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
View 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
Write
Preview
Loading…
Cancel
Save