Skip to content

Commit d0727f4

Browse files
committed
Add scripts
1 parent 4fb0297 commit d0727f4

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

β€Žmisc/push-pull/pullβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
if [ "x$1" = "x-usage" ]; then
4+
echo push memo from server
5+
exit
6+
fi
7+
8+
cd $MEMODIR && git pull origin master
9+

β€Žmisc/push-pull/pull.cmdβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
if "x%1" neq "x-usage" goto run
3+
echo pull memo from server
4+
goto :eof
5+
:run
6+
setlocal
7+
cd %MEMODIR% && git pull origin master

β€Žmisc/push-pull/pushβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
if [ "x$1" = "x-usage" ]; then
4+
echo push memo to server
5+
exit
6+
fi
7+
8+
cd $MEMODIR && git add -A --ignore-errors && git commit -m update && git push origin master

β€Žmisc/push-pull/push.cmdβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
if "x%1" neq "x-usage" goto run
3+
echo push memo to server
4+
goto :eof
5+
:run
6+
setlocal
7+
cd %MEMODIR% && git add -A --ignore-errors && git commit -m update && git push origin master
File renamed without changes.

0 commit comments

Comments
Β (0)