TIL (Today I Learned)

The TIL series of articles contains very short articles documenting something I learned “today”.

Today I learned how to automatically delete local git branches that have been merged already.

Today I learned that you can run custom Python code when Python starts-up, before running other scripts or programs.

Today I learned how to find the commits that affected a specific file with git log.

Today I learned how to customise the Python REPL on start-up.

Today I learned how to create nested git repositories through the submodules command.

Today I learned how to create an alias to activate my Python virtual environments with a single-word command.

Today I learned how to use VS Code's sticky scroll feature.

Today I learned how to rename a git branch from the CLI.