git clone git@github.com:fire2a/C2F-W.git
cd C2F-W
# alternative A
git pull
# B
git fetch
git switch [-c] branch-name-is-at-least-a-half-sentence-explaining-the-feature/issue [main]
git diff
git add new_or_changed_text_file
git commit -m "sentence that explains the purpose of the change"
git push [--set-upstream origin my-feature-branch]
# contribute
firefox https://github.com/fire2a/C2F-W/compare/main...my-feature-branchgit status
git log
git branch -a
git remote -v- (what is git again?) watch any video introduction, or play the game: https://ohmygit.org/
- (novice) Get started with GitHub documentation
- (do once) SSH Authentication
- (essential, must be understood) Contributing to a project
- official docs: really good cheat sheets and official manual
- Learn how your IDE implements git (example: VSCode or Unix is my IDE); to do interactive and/or visual diffs.
- setup
.gitconfig - view differences:
diffbetween branches, commits, tags... - search into the whole tree
git log --grep <regex> [branches] merge; branches, 2-3 waycherry-pickgit remote set-url origin git@...- never
git reset ... - search all code (all branches)
git grep -e 'your_search_string' $(git rev-list --all)
- the best code/document is not the smartest one, but the most legible
- write/name everything as for your future self, when you'd forgotten about it & context
- avoid typing errors by typing as little as possible vs copy/paste

