add git config

This commit is contained in:
user 2023-07-04 17:44:16 +02:00
parent 312e8dc9d1
commit e2908d44ce
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@ function gitclone() {
git config --global user.name "user" git config --global user.name "user"
git config --global push.default simple git config --global push.default simple
git config --global pull.rebase true git config --global pull.rebase true
git config --global merge.tool vimdiff
git config --global --add safe.directory '*' git config --global --add safe.directory '*'
# Aktualisiere die Repositiories # Aktualisiere die Repositiories

View file

@ -4,7 +4,6 @@ set -ex
clear clear
git config --global credential.helper store
arch=$(uname -m) arch=$(uname -m)
branch=master branch=master
repo=SpectreOS repo=SpectreOS
@ -83,6 +82,7 @@ function gitclone() {
git config --global user.name "user" git config --global user.name "user"
git config --global push.default simple git config --global push.default simple
git config --global pull.rebase true git config --global pull.rebase true
git config --global merge.tool vimdiff
if [ -d "/opt/${repo}" ]; then if [ -d "/opt/${repo}" ]; then
echo "${repo} existiert bereits!!!" echo "${repo} existiert bereits!!!"
cd /opt/${repo} cd /opt/${repo}