Skip to content

Instantly share code, notes, and snippets.

@rizkytegar
Created September 27, 2023 03:55
Show Gist options
  • Save rizkytegar/e0861278b7e95758fac8f7b19d585c4d to your computer and use it in GitHub Desktop.
Save rizkytegar/e0861278b7e95758fac8f7b19d585c4d to your computer and use it in GitHub Desktop.
Auto commit tools for backup using git and github
git init
git add .
git commit -m "daily update"
git remote add origin https://token@github.com/username/repository
git remote set-url origin https://token@github.com/username/repository
git push -f origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment