User Configuration
Estimated time to read: 1 minute
Setting your Git username for every repository on your computer
- Lets check the config list
- Set a Global Git username:
Output:
root@OpsFusionLabs-Git-Server:~/opsfusionlabs# git config --global user.name "opsfusionlabs"
root@OpsFusionLabs-Git-Server:~/opsfusionlabs# git config user.name
opsfusionlabs
root@OpsFusionLabs-Git-Server:~/opsfusionlabs#
Output:
root@OpsFusionLabs-Git-Server:~/opsfusionlabs# git config --global user.email "opsfusionlabs@gmail.com"
root@OpsFusionLabs-Git-Server:~/opsfusionlabs# git config user.email
opsfusionlabs@gmail.com
Output:
root@OpsFusionLabs-Git-Server:~/opsfusionlabs# git config user.name && git config user.email
opsfusionlabs
opsfusionlabs@gmail.com