Menu

Pushing Code to GitHub

Pushing Code to GitHub

To push your project to GitHub, run these commands in your project terminal:

Step 1: Initialize Git in your project folder

git init

Step 2: Add all files to staging

git add .

Step 3: Create your first commit

git commit -m "first commit"

Step 4: Rename the branch to main

git branch -M main

Step 5: Connect your project to the GitHub repository

git remote add origin https://github.com/Abhisesarcasm/Recipe-Finder-app.git

[Format: git remote add origin <repo url>]

(The link here is the repository URL, which you get when you create a new repository on GitHub.)

GitHub Repo Link: Recipe_Finder-Repo