Update git note
This commit is contained in:
parent
526b96ef22
commit
ba12f76c90
1 changed files with 4 additions and 13 deletions
17
notes/git.md
17
notes/git.md
|
|
@ -152,17 +152,8 @@ deafcbf HEAD@{2}: checkout: moving from master to my-branch
|
|||
$ git reset HEAD@{2} --hard
|
||||
```
|
||||
|
||||
Désactiver le pull d'un submodule à problème
|
||||
|
||||
# GitHub
|
||||
|
||||
Générer un Personal Access Token pour les accès HTTPS
|
||||
|
||||
git config --global credential.https://github.com.helper cache
|
||||
|
||||
git credential approve <<EOF
|
||||
protocol=https
|
||||
host=github.com
|
||||
username=$GITHUB_USERNAME
|
||||
password=$GITHUB_TOKEN
|
||||
EOF
|
||||
|
||||
```
|
||||
git config submodule.<nom_module>.update none
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue