-
Notifications
You must be signed in to change notification settings - Fork 0
/
UpdateGithub.sh
executable file
·39 lines (36 loc) · 1.08 KB
/
UpdateGithub.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env sh
#
# UpdateGithub.sh
#
#
# Copyleft 2013-2014 Luca Cappelletti <mutek@riseup.net>
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#
# 0. You just DO WHAT THE FUCK YOU WANT TO.
#
# i parametri commentati sono stati inseriti nell'hook git pre-commit
git config --global user.name "mutek"
git config --global user.email mutek@inventati.org
echo "Aggiungo i cambiamenti al database locale"
git add .
#echo "Inserisci una descrizione dei tuoi cambiamenti"
#read n
echo "Eseguo la finalizzazione dei cambiamenti in locale"
EPOCA_UNIX=$(date +%N)
echo "Commento transazione: "$EPOCA_UNIX
git commit -a -m "$EPOCA_UNIX"
echo "Invio i cambiamenti locali al deposito remoto..."
git push origin master
#git push origin gh-pages
echo "ok"