Problem:
1. How to add an existing vs code project to git and github
2. How to do commit and push whenever changes happen
3. How to clone from github to vscode
4. How to remove project from git
Solution:
Note: You may need to set git credentials on your system using the commands
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Step 1 : Install git on your system
Step 2 : Create account on github - https://github.com/
Step 3 : Create a repository on github & copy url
Step 4 : Goto VS Code and open project/folder
note : check git is enabled from settings
Step 5 : Goto source control section & click on git icon
Step 6 : Give commit message & Commit the changes
Step 7 : Add remote repo (github repo)
Step 8 : Push commited changes to github repo
Step 9 : Check changes on github repo
References:
https://code.visualstudio.com/docs/editor/versioncontrol#_remotes
https://git-scm.com/downloads
No comments:
Post a Comment