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