Skip to content

Instantly share code, notes, and snippets.

@orzklv
Created May 31, 2023 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save orzklv/77c6c8cabbab6e297c46188a4ee50413 to your computer and use it in GitHub Desktop.
Save orzklv/77c6c8cabbab6e297c46188a4ee50413 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