DEV Community


Posted on

How to push the Project into the git repo.!


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)