%Schriftgröße, Layout, Papierformat, Art des Dokumentes
\documentclass[10pt,oneside,a4paper,headsepline,footsepline]{scrartcl}

%Einstellungen der Seitenränder
\usepackage[left=2cm,right=2cm,top=1.5cm,bottom=1.5cm,includeheadfoot]{geometry}

%neue Rechtschreibung
\usepackage[ngerman]{babel}

%Umlaute ermöglichen
\usepackage[utf8]{inputenc}

%Gesamtseitenzahl
\usepackage{lastpage}

% Kopf- und Fußzeile
% Funktioniert nicht \usepackage[automark]{scrpage2}%
\usepackage[automark]{scrlayer-scrpage}

%Quellcode-Listings
\usepackage{listings}

%Hyperlinks
\usepackage{hyperref}

%Schriftarten
\usepackage[T1]{fontenc}

%Kopfzeile
\ihead{Softwaretechnik}
\chead{}
\ohead{http://kohnlehome.de/informatik/git-config.pdf}
%\setheadsepline{0.5pt} DEPRECATED

%Fußzeile
%\setfootsepline{0.5pt} DEPRECATED
\ifoot{Franz Kohnle}
\cfoot{Seite \thepage\ von  \pageref{LastPage}}
\ofoot{\today}

\pagestyle{scrheadings}

\begin{document}

% Überschrift 
\begin{center}
\LARGE % Schriftgröße
\bfseries % Fettdruck
\sffamily % Serifenlose Schrift
git config
\end{center}

%\section*{Hilfe}
%\begin{tabular}{l l}
%\texttt{git help} & Hilfe\\
%\texttt{git help BEFEHL} & Hilfe zum BEFEHL
%\end{tabular}

\section*{Konfiguration anschauen}
\begin{tabular}{l l}
\texttt{git config --list --show-origin} & 
\end{tabular}

\section*{Scope}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{c | l | l | l}
Scope & Kommando & Linux & Windows-Portable\\ \hline \hline
System & \texttt{git config --system ...} & /etc/gitconfig & PortableGit\textbackslash mingw64\textbackslash etc\textbackslash gitconfig\\
Benutzer & \texttt{git config --global ...} & \textasciitilde{}/.gitconfig & C:\textbackslash SPB\_Data \textbackslash .gitconfig\\
Repository & \texttt{git config --local ...} & .git/config & .git\textbackslash config
\end{tabular}

\section*{Grundkonfiguration}
\begin{verbatim}
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --global init.defaultBranch main 
\end{verbatim}

\section*{Konfigurationsdatei PortableGit\textbackslash mingw64\textbackslash etc\textbackslash gitconfig}
\begin{verbatim}
[core]
    editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe'
             -multiInst -notabbar -nosession -noPlugin
[http]
    proxy = http://192.168.100.1:8080
[user]
    name = Anna Arm
    email = anna@kohnlehome.de

\end{verbatim}
\end{document}
