Vérifie si Git est installé
which git
- S’il ne l’est pas :
brew install git
Présente toi à Git
git config --global user.name 'Jane Doe'
git config --global user.email 'jane@example.com
git config --global --list
Cloner un repo
Cacher le Personnal access token
Updates and shortens a post by Danielle Navarro.
For everyone :
If (and only if) no token yet :
usethis::create_github_token()
Then cache it :
gitcreds::gitcreds_set()
Check your git situation :
usethis::git_sitrep()
Then, for Linux users only :
Download the latest version of GCM (the .deb file)
Install it :
sudo dpkg -i <path-to-deb-file>
git-credential-manager configure
And not : git-credential-manager-CORE configure
, as in Danielle Navarro’s blog post.
Check libsecret is installed (it should be) :
dpkg -s libsecret-1-0
The status should be Install ok Installedgit config --global credential.credentialStore secretservice
The first time you make a push, a window will open in your web browser, asking for password and a confirmation.
Citation
@online{boulakia2023,
author = {Boulakia, Théo},
title = {Git et Github},
date = {2023-06-25},
url = {https://tblk.github.io/data-tips/git-et-github/},
langid = {fr}
}