- Cd ..
- /users sudo mkdir basit
- /users sudo chmod -R 777 basit
- Cd basit
- ssh-keygen -t ed25519 -C "[email protected]"
- Cd ..
- ~ Open .gitconfig
- [user]
-
name = M Ahmed
-
email = [email protected]
- [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 "[email protected]"
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 "[email protected]"
Verify your configuration by displaying your configuration file:
- cat .git/config