Watch: Put my project on GitHub for the first time | Vovy
Watch Vovy do it on a Mac: "Make a private GitHub repo for this folder and push my code to it". Vovy turns your project folder into a Git repo, writes a .gitignore, creates a private GitHub repo and pushes your first commit.
"Make a private GitHub repo for this folder and push my code to it"
Vovy turns your project folder into a Git repo, writes a .gitignore, creates a private GitHub repo and pushes your first commit.
What happens in the video
- Start a Git repo: Vovy runs git init in your folder. A repo, short for repository, is your project plus a history of every saved version.
- Keep secrets out: Before anything is saved, Vovy adds a .gitignore for node_modules and .env files, and scans for stray API keys.
- Make the first commit: Vovy stages your files and commits them. A commit is a snapshot with a short note, like a save point in a game.
- Create the GitHub repo: Vovy creates a private repo on GitHub under your account, with a name you pick, and links it to your folder as origin.
- Push and open it: Vovy pushes to main and opens the repo page, with a card explaining commit, push and pull in one line each.
Read the step-by-step guideLoading...