//upload project to github using git bash
1 git init
2 git add .
3 git commit -m "first commit"
4 //create a repository in git hub
//copy the url of new repository created and paste in following command before .git
5 git remote add origin url.git
6 git push -u origin master
//Commands to Update Existing repository
// Find & copy Central Repo URL
git remote add upstream https://github.com/username/repositoryname.git
//pull down any changes and sync the local repo with the central repo
git pull upstream main // main is the default branch you can write your own branch name
//add changes
git add .
git commit -m "Message"
//push your changes up to your fork
git push origin master