You can use OAuth tokens to interact with GitHub Enterprise via automated scripts.
Create a personal access token on your application settings page.
Tip: We recommend that you regularly review your authorized integrations. Remove any applications and tokens that haven’t been used in a while.
Once you have a token, you can enter it instead of your password when performing Git operations over HTTPS.
For example, on the command line you would enter the following:
$ git clone https://hostname/username/repo.git
To avoid these prompts, you can use Git password caching.