Git automation with OAuth tokens

You can use OAuth tokens to interact with GitHub Enterprise via automated scripts. Step 1: Get an OAuth token Create a personal access token on your application settings page. Tip: We recommend that you regularly review your authorized integrations. Remove any...

How do I show my global Git configuration?

You can use: git config –list or look at your ~/.gitconfig file. The local configuration will be in your repository’s .git/config file. Use: git config –list –show-origin to see where that setting is defined (global, user,...

Comparing changes with git diff

Diffing is a function that takes two input data sets and outputs the changes between them. git diff is a multi-use Git command that when executed runs a diff function on Git data sources. These data sources can be commits, branches, files and more. This...

GitHub Error: Authentication Failed from the Command Line

After setting up 2 Factor Authentication on GitHub, I couldn’t push my remote repositories from the command line anymore. When I tried to push a remote repo, the command line threw this error: ~ :> git push origin my-branchUsername for...

Managing a custom domain for your GitHub Pages site

You can set up or update certain DNS records and your repository settings to point the default domain for your GitHub Pages site to a custom domain. GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and...