DEV Community

Carnato
Carnato

Posted on

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

Discussion (0)