
Programming
Error: src refspec main does not match any (and master): How to Fix It
Git can't push main or master because that branch doesn't exist locally yet. Make your first commit, match the branch name, and push again.
5 min read
Category
Beginner-friendly programming guides and fixes for the errors developers actually hit: git push errors, .NET assembly loading, SSH key exchange settings, Java formatting and getting started with Python.

Programming
Git can't push main or master because that branch doesn't exist locally yet. Make your first commit, match the branch name, and push again.
5 min read

Programming
Git says "fatal: not a git repository" when it can't find a .git folder. Here's how to find the right folder, start a repository, and fix GIT_DIR, submodule and ownership problems.
6 min read

Programming
What git push --force-with-lease does, how it differs from --force, when to use it after a rebase or amend, and why --force-if-includes makes it safer.
7 min read

Programming
Fix "fatal: The current branch has no upstream branch" with git push -u, set tracking on an existing branch, and make Git set the upstream for you.
5 min read

Programming
Undo your last Git commit the right way: keep the changes, throw them away, or reverse a commit you already pushed, plus how to recover from a bad reset.
7 min read

Programming
A free path from zero to writing real Python: install it, pick one free course, use the official docs and build small projects.
7 min read

Programming
How System.out.printf and String.format work in Java: %d, %s, %f, %n and %x, width and precision, flags, locales and the mistakes that throw exceptions.
7 min read

Programming
Eleven small Python projects that teach real skills, from a number guessing game to a weather app, each with the modules it uses and starter code.
8 min read

Programming
How to raise exceptions in Python: built-in errors like ValueError, custom exception classes, raise from, re-raising and when to use assert instead.
7 min read