New to VS Code and Git. I was able to get code setup with git on my windows 10 machine. I can clone the repository I want to a new local folder on my desktop and view the code.
I also created a new private repository on GitHub (as a destination point) and want to first send the code (no changes made) to this new destination and can't seem to find a way/method to do this with VS Code.
Any suggestions will be greatly appreciated.
Thanks!
CodePudding user response:
git init
git add .
git commit -m "First commit"
git remote add origin https://git....
git push -u origin master
CodePudding user response:
- use this
git remote -v
to verify remote repository - use
git remove nameOfReporistory
to remove the existing repository git remote add origin https://github.com/user/repo.git
to add your repository
for more information : enter link description here