Ensure to restore all previous content

This commit is contained in:
gardouille 2024-03-10 19:37:53 +01:00
parent 15405d7d36
commit 5e84f4da5f
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,8 @@ if [ -d ~/.git ] && [ $(command -v git) ]; then
if [ ! -f "${HOME}"/.gitconfig ]; then
printf '%b\n' "Please enter Git login to get the remote homedir content"
git pull
### Ensure to recover all content
git restore .
fi
fi
## }}}

View File

@ -28,6 +28,8 @@ if [ -d ~/.git ] && [ $(command -v git) ]; then
if [ ! -f "${HOME}"/.gitconfig ]; then
printf '%b\n' "Please enter Git login to get the remote homedir content"
git pull
### Ensure to recover all content
git restore .
fi
fi
## }}}