Mount Git configuration
Mount your Git configuration into workspaces to set your Git identity and preferences.
Before you begin
- You have an active
ocsession with your project. See Getting started with the CLI.
About this task
The user.name and user.email fields are set automatically to the gitconfig content from a git provider that is connected to OpenShift Dev Spaces. This connection requires a Git-provider access token or a token generated via OAuth, and you must set the username and email on the provider’s user profile page.
Procedure
Results
- Open a terminal in your workspace.
- Verify the Git configuration:
$ git config --list