update git section
This commit is contained in:
@@ -11,4 +11,21 @@ Host github.com
|
|||||||
User git
|
User git
|
||||||
IdentityFile ~/.ssh/my-github-key
|
IdentityFile ~/.ssh/my-github-key
|
||||||
PreferredAuthentications publickey
|
PreferredAuthentications publickey
|
||||||
|
```
|
||||||
|
|
||||||
|
## Generate SSH Key
|
||||||
|
|
||||||
|
Use the following to generate a new SSH key:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh-keygen -t ed25519 -C "<email>"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configure Git User
|
||||||
|
|
||||||
|
You can configure your Git user name and email using the following commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git config --global user.name "Your Name"
|
||||||
|
git config --global user.email "<email>"
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user