howto:github
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:github [2020/12/16 22:15] – Wuff | howto:github [2025/10/21 20:53] (current) – [Create repository] Wuff | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| < | < | ||
| cd context.youtube.dl.menu/ | cd context.youtube.dl.menu/ | ||
| + | git config --global init.defaultBranch main | ||
| git init | git init | ||
| Initialised empty Git repository in / | Initialised empty Git repository in / | ||
| Line 101: | Line 102: | ||
| </ | </ | ||
| + | ===== Git Credentials ===== | ||
| + | |||
| + | < | ||
| + | then: | ||
| + | < | ||
| + | git push http:// | ||
| + | Username: <type your username> | ||
| + | Password: <type your password> | ||
| + | |||
| + | [several days later] | ||
| + | git push http:// | ||
| + | [your credentials are used automatically] | ||
| + | </ | ||
| + | |||
| + | Passwords stored in plain text, each on their own line in URL format: | ||
| + | <code ~/ | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | ===== Forceful undo last commit ===== | ||
| + | < | ||
| + | git reset --hard HEAD^ | ||
| + | git push origin -f | ||
| + | </ | ||
howto/github.1608156908.txt.gz · Last modified: (external edit)