GitHub – VSCode
Table of Contents
Sources
- how-to-add-a-new-project-to-github-using-vs-code
- .gitignore
- How to remove stuff
- How to remove history
Starter-Code
In Console
// Set up git Account globaly
git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"
// Check User Config
git config --list
// Start github
git init // start tracking current directory
git add -A // add all files in current directory to staging area, making them available for commit
git commit -m "commit message" // commit your changes
git remote add origin https://github.com/username/repo-name.git // add remote repository URL which contains the required details
git pull origin master // always pull from remote before pushing
git push -u origin master // publish changes to your remote repository
With VSCODE
1. Ctrl+Shift+P / F1
2. Publish to Github
git rm -r --cached your-directory-to-delete
git commit -m 'Removed unused directorys"'
git push origin main