- SSH into your GitHub Enterprise instance.
- Run the GitHub Enterprise Console by typing the following:
ghe-console -y
- When in the console, type the following to change the username option:
GitHub.config.set("user_renaming_enabled", "false", dat("YOUR_USERNAME"))
- You should see a response that looks like the following:
=> false
-
If successful, type
exit
to exit the console. If not successful, there is a chance that the user you used in your configuration setting does not exist in the system. The third parameter in the config.set() method is the user name for audit purposes and must be an administrator. -
Once exiting the GHE console, you should be back in your SSH session.
-
To refresh config settings, at the SSH prompt type:
ghe-config-apply
- Exit your SSH session and then confirm that the Username Change setting has disappeared from the settings menu.