Git in Practice #4: git init and Your First Push to GitHub

In the previous chapter, the project already existed on the server. Here, we start from an empty folder: we initialize Git, then send the project to GitHub. What you'll learn Turn an existing folder into a Git repository with git init Create the repository on GitHub and understand .gitignore Link your project to the repository with git remote Make the first commit and the first push 1. Initialize Git: git init Create a folder with a first file, then initialize Git inside it: ...

November 19, 2026 · 4 min · 689 words · Naimi

Git in Practice #9: Syncing Your Fork with upstream

In the previous chapter, we covered pull requests and forks. But one very important point was missing: how do you get the original project’s new changes into your fork? What you'll learn Why your fork falls behind the original project The role of the origin and upstream remotes Keep your fork up to date, and the full contribution cycle The problem Your fork is a copy of the project, taken at a given moment. While you work, other developers get their pull requests merged into the original project. Your fork doesn’t update itself. ...

November 19, 2026 · 3 min · 468 words · Naimi