Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crystalnyan/93068eafb236d37fd9766416fb4d6e7f to your computer and use it in GitHub Desktop.
Save crystalnyan/93068eafb236d37fd9766416fb4d6e7f to your computer and use it in GitHub Desktop.
Pushing with GitHub Personal Token
#!/bin/bash
# shellcheck disable=SC2164
cd "$(dirname "$0")"
export GITHUB_ACCESS_TOKEN=""
export GITHUB_USERNAME=""
export REPOSITORY_NAME=""
git push https://"$GITHUB_ACCESS_TOKEN"@github.com/"$GITHUB_USERNAME"/"$REPOSITORY_NAME".git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment