-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgit_setup.sh
More file actions
executable file
·31 lines (26 loc) · 962 Bytes
/
Copy pathgit_setup.sh
File metadata and controls
executable file
·31 lines (26 loc) · 962 Bytes
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
#!/bin/bash
##############################################################################
#
# Program : git_setup v1
# Arch : x86_64
# Author : StormOSDev
# Website : https://sourceforge.net/projects/hackman-linux/
#
##############################################################################
_msg() {
printf "\n"
term_cols=$(tput cols)
str="$1"
tput setaf 5; printf '%*s\n' "${term_cols}" '' | tr ' ' - ; tput sgr0
tput setaf 4; printf "%*s\n" $(((${#str}+$term_cols)/2)) "$str"; tput sgr0
tput setaf 5; printf '%*s\n' "${term_cols}" '' | tr ' ' - ; tput sgr0
}
_msg "Setting up Git Repository!"
git init
git config --global user.name "bfitzgit23"
git config --global user.email "dfitz@me.com"
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
_msg "Git Repository Setup Complete!"