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 applications and tokens that haven’t been used in a while. Step 2: Clone a repository Once you have a … Read more

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 document will discuss common invocations of git diff and diffing work flow patterns. The git … Read more

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 ‘’: myusernamePassword for ‘https://[email protected]’: mypasswordremote: Invalid username or password.fatal: Authentication failed for ‘’ The error … Read more

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 private repositories with GitHub Pro, GitHub Team, GitHub Enterprise … Read more