GitHub Tricks

GitHub web editor

Hidden feature in GitHub web editor: you can move a line of code up or down by holding Option (on Mac) or Alt (on Windows/Linux) and pressing the Up or Down arrow keys!

Automatically sync code snippets in your README with GitHub Actions

https://www.reddit.com/r/TricksForGeeks/comments/1pk9wr6/automatically_sync_code_snippets_in_your_readme/

✅ Guide by TfG

Generate a license for your repo

brew install gh
# This pulls the legal text from GitHub's API and saves it as a file
gh repo license view CC-BY-SA-4.0 > LICENSE

Cool stuff