Using GitHub API with Personal Access Token

Create a personal access token first. Add to .bashrc or .zshrc if necessary. Get User Info Check if branch exists Get commit SHA for a branch