Select your PC environment:
Now, let's set up the default username and e-mail address for Git that will be used to identify the person who commits the change. This setup only needs to be done once.
From the right-click menu, click TortoiseGit > Settings.
On the settings screen, enter your name and e-mail address.
Once you have successfully installed and activated SourceTree, you will be prompted by the set up wizard to enter your name and e-mail address. When you have done that, click "next".
Next, you will be asked to fill in some information for Github and Bitbucket. We can skip that for now by just click the "next" button.
Click "finish" and proceed.
The Git console configuration is saved in the .gitconfig file in the user's home directory. You can manually edit the file but in this tutorial we will be using the "config" command.
$ git config --global user.name "" $ git config --global user.email ""
Set Git output color.
$ git config --global color.ui auto
You can also set aliases for Git commands. For instance, you can abbreviate "checkout" to "co" and use that to execute the command.
$ git config --global alias.co checkout
If you use Console (Git Bash) on Windows, a file name containing non-ascii characters will be displayed in a form like "\346\226\260\350\246...". We can configure it to allow the file to display the file name as it is by doing the following.
$ git config --global core.quotepath off
If you use Console on Windows, you can only use ascii characters. Accordingly, if you want to include multi-byte characters in a commit message, you have to set an external editor and should not use the -m option.
External editors should be compatible with the character code UTF-8 and linefeed code LF.
git config --global core.editor "\"[path of the editor you use]\""
Set up is now complete! On the next page, we will start with creating a repository.