How to push the Project into the git repo.!

carnato

Vishal Yadav

Posted on January 26, 2022

How to push the Project into the git repo.!

Solution

Create repo into the GitHub profile

  • Then type the command in sequential order.

  • first create .gitignore file and then

 git init

 git add .

- git commit -m "Initial commit"

- git remote add origin path http

- git branch -m main

- git push -u origin main
Enter fullscreen mode Exit fullscreen mode

how to remove git from project

  • rm -rf .git
💖 💪 🙅 🚩
carnato
Vishal Yadav

Posted on January 26, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related