Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 8, 2018
1 parent 7978733 commit 8d400d7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions gitbak.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

path="$(cd $(dirname $0);pwd)"

function upload() {
now_time=$(date '+%Y-%m-%d %H:%M:%S')
echo $path
cd $path
echo "[info] entering git path... $(pwd)"
git add -A
git commit -m "Time: $now_time"
git push origin
}


function main() {
upload
}

main

0 comments on commit 8d400d7

Please sign in to comment.