Link local gitrepo to github.
- Create a new repository on GitHub.com.
- Open Git Bash.
- Change the current working directory to your local project.
- git init -b main above command initializes the local directory as git repository and makes current directory as main branch.
- git add . && git commit -m "First commit"
- it remote add origin <REMOTE_URL> git remote add origin https://github.com/maramrajendra/github1.git
- git remote -v origin https://github.com/maramrajendra/github1.git (fetch) origin https://github.com/maramrajendra/github1.git (push)
- git push origin main