\documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{graphicx} \usepackage{listings} \usepackage{xcolor} \usepackage{hyperref} \lstset{ backgroundcolor=\color{gray!10}, basicstyle=\ttfamily\small, breaklines=true, frame=single, language=bash, } \title{GogsPG} \author{} \date{} \begin{document} \maketitle \section{Restaurar un zip} \subsection{Primero la base de datos} \begin{lstlisting} ./gogs restore --database-only --config=/data/gogs/conf/app.ini --from=/data/gogs-backup-20260818105724.zip \end{lstlisting} Si da error al entrar en algĂșn proyecto, desde el directorio \texttt{/data/git/gogs-repositories}: \begin{lstlisting}[language={}] su -s /bin/bash git -c "git config --global --add safe.directory '*'" \end{lstlisting} \end{document}