-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitbeal.sh
executable file
·49 lines (32 loc) · 1.21 KB
/
gitbeal.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
#!/bin/bash
# installing git if not installed for specific distro's
if ! location="$(type -p "git")" || [ -z "git" ]; then
echo "#################################################"
echo "installing git for this script to work"
echo "#################################################"
sudo apt install git -y
# check if apt-git is installed
if which apt-get > /dev/null; then
sudo apt-get install -y git
fi
# check if pacman is installed
if which pacman > /dev/null; then
sudo pacman -S --noconfirm git
fi
# check if eopkg is installed
if which eopkg > /dev/null; then
sudo eopkg -y install git
fi
fi
#setting up git
#https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config
git init
git config --global user.name "krive001"
git config --global user.email "[email protected]"
sudo git config --system core.editor nano
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=25000'
git config --global push.default simple
echo "################################################################"
echo "################### T H E E N D ######################"
echo "################################################################"