Created
April 13, 2022 15:26
-
-
Save LemonSpike/1b442a5ae4f8df798aff280684e01346 to your computer and use it in GitHub Desktop.
Git Operations for DocC Deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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