Sunday 29 November 2020

VS Code Add Current Project to GitHub Repository

 


Step1: Create an empty project in your Git Repo
 
Step2 : Execute below commands from Git bash
 
cd c:\ABC (This is your current project folder)
git init .
git config --global user.name <yourGitHubAccount>
git config --global user.email <yourGitHubEmailAccount>
git add .
 
git status
# edit .gitignore to ignore folder you don't want
 
git commit -m "first commit"
git remote add origin https://github.com/<yourGitHubAccount>/<yourRepo.git>
git push -u origin master

No comments:

Post a Comment