Default settings
Next, set your default username and e-mail address so that Git can identify the person committing changes.
This setup only needs to be done once.
From the right-click menu, click “TortoiseGit” > “Settings.”
Select your language and click “Next.”
![Click TortoiseGit settings](/static/ecb7f78a0a264c822d71417e84726ab4/5a190/01.png)
Click “Next” on the following screen.
![click Next](/static/eb2a8e8093f558a348b6ff50efc3d6e6/5a190/02.png)
And click “Next” again.
![click Next again](/static/fcfe522a5190af350264ccfaeb20fab5/5a190/03.png)
Enter your name and email address, then click “Next.”
![Enter your name and email address, then click “Next](/static/eccc834ff88083933600522df9ae30f0/5a190/04.png)
![Click Finish](/static/83f0b145f7ed32995b6127ab0188e82b/5a190/05.png)
Click “Finish.”
Next, we will change the default branch name to be more inclusive.
To do so, right-click anywhere and choose “TortoiseGit,” then choose “Settings.”
![right-click and choose TortoiseGit, then choose Settings](/static/14ae8a7dc460fac1c908c260606601ef/5a190/06.png)
Click on the entry labeled “Git”, then click “Edit systemwide gitconfig.”
(Note: You may need help from your IT department if you don’t have the proper privileges on your device.)
![Click on the entry labeled Git, then click Edit systemwide gitconfig](/static/cf8ecbf2059bc3b71e83f5e0e7aa604a/5a190/07.png)
In the text editor that opens, find the line that says “defaultBranch = master.”
![gitconfig code](/static/b4ef381164a18f2b9faa2ee8d369a697/5a190/08.png)
Replace it with “defaultBranch = main” (or another name you see fit).
![Replace it with defaultBranch = main on the gitconfig code](/static/0af35d06ba207b1118ebe3539aa43d97/5a190/09.png)
Setup is complete! Now we can get to work.