The first thing to do before starting to use Git is to set a user name and email address. This is important because every Git commit uses this information.
Prerequisites
-
The Visual Studio Code Git extension installed.
Procedure
To configure Git identity using the Che user interface, go to in Preferences.
-
Open File > Settings > Open Preferences:
-
In the opened window, navigate to the Git section, and find:
user.name user.email
And configure the identity.
To configure Git identity using the command line, open the terminal of the Che-Theia container.
-
Navigate to the My Workspace view, and open Plugins > theia-ide… > New terminal:
-
Execute the following commands:
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
Che-Theia permanently stores this information and restores it on future workspace starts.
