-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgit.sh
executable file
·71 lines (54 loc) · 2.1 KB
/
git.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
############################################################################
# Written to be used on 64 bits computers
# Author : Erik Dubois
# Website : http://www.erikdubois.be
############################################################################
#
#
# MMMMMMMMMMMMMMMMMMMMMMMMMmds+.
# MMm----::-://////////////oymNMd+`
# MMd /++ -sNMd:
# MMNso/` dMM `.::-. .-::.` .hMN:
# ddddMMh dMM :hNMNMNhNMNMNh: `NMm
# NMm dMM .NMN/-+MMM+-/NMN` dMM
# NMm dMM -MMm `MMM dMM. dMM
# NMm dMM -MMm `MMM dMM. dMM
# NMm dMM .mmd `mmm yMM. dMM
# NMm dMM` ..` ... ydm. dMM
# hMM- +MMd/-------...-:sdds dMM
# -NMm- :hNMNNNmdddddddddy/` dMM
# -dMNs-``-::::-------.`` dMM
# `/dMNmy+/:-------------:/yMMM
# ./ydNMMMMMMMMMMMMMMMMMMMMM
# \.MMMMMMMMMMMMMMMMMMM
#
#
#
############################################################################
# echo "# Ultimate-Linux-Mint-18" >> README.md
# git init
# git add README.md
# git commit -m "first commit"
# git remote add origin https://github.com/erikdubois/Ultimate-Linux-Mint-18-Cinnamon.git
# git push -u origin master
# git config --global user.name x
# git config --global user.email x
# sudo git config --system core.editor nano
# git config --global credential.helper cache
# git config --global credential.helper 'cache --timeout=3600'
# Force git to overwrite local files on pull - no merge
# git fetch all
# git push --set-upstream origin master
# git reset --hard orgin/master
# Below command will backup everything inside the project folder
git add --all .
echo "####################################"
echo "Write your commit comment!"
echo "####################################"
read input
# Committing to the local repository with a message containing the time details and commit text
curtime=$(date)
git commit -m "Commit comment : $input on $curtime"
# Push the local snapshot to a remote destination
git push -u origin master