- Cd ..
- /users sudo mkdir basit
- /users sudo chmod -R 777 basit
- Cd basit
- ssh-keygen -t ed25519 -C "mayowdev@gmail.com"
- Cd ..
- ~ Open .gitconfig
- [user]
-
name = M Ahmed -
email = mozgen.dev@gmail.com - [includeIf "gitdir:/Users/basit/"]
-
path = /Users/basit/.gitconfig - Then save the git config
- ~ eval "$(ssh-agent -s)"
- ➜ ~ ssh-add ~/.ssh/basit_rsa
Open the command line.
-
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
-
Set your email address: git config --global user.email "MY_NAME@example.com"
From the command line, change into the repository directory.
-
Set your username: git config user.name "FIRST_NAME LAST_NAME"
-
Set your email address: git config user.email "MY_NAME@example.com"
Verify your configuration by displaying your configuration file:
- cat .git/config