Skip to content

Instantly share code, notes, and snippets.

@LemonSpike
Created April 13, 2022 15:26
Show Gist options
  • Save LemonSpike/1b442a5ae4f8df798aff280684e01346 to your computer and use it in GitHub Desktop.
Save LemonSpike/1b442a5ae4f8df798aff280684e01346 to your computer and use it in GitHub Desktop.
Git Operations for DocC Deployment
git config user.name "$DOCC_GITHUB_NAME"
git config user.email "$DOCC_GITHUB_EMAIL"
# Change the GitHub URL to your repository
git remote set-url origin https://$DOCC_GITHUB_USERNAME:$DOCC_GITHUB_API_TOKEN@github.com/theappbusiness/ModularSlothCreator/
git fetch
git stash push -u -- docs doc_archives
git checkout feature/docc-hosting
rm -rf docs doc_archives
git stash apply
git add docs doc_archives
git commit -m "Updated DocC documentation"
git push --set-upstream origin feature/docc-hosting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment