# Push newly created local branch to remote
git push --set-upstream origin <branch name>
git remote add origin https://github.com/oeh77/FastApi_Project1.git
git branch -M main
git push -u origin main
git push -u origin master // where 'master' is branch name
git push --set-upstream origin repository name
$ git push -u origin feature
# Create a new repository on the command line
//Just one note: if the repository doesn't exist in Github, first you will have to create it: https://help.github.com/articles/creating-a-new-repository/
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
$ git checkout feature
$ git push -u origin feature
git push <REMOTENAME> <BRANCHNAME>
git push --force origin main //force pushing to remote github repo
git remote set-url --add --push origin some-URL/MyDestinationRepo
Personal@LAPTOP-SKVEHBA2 MINGW64 /e/git pushing (main)
$ git remote add origin https://github.com/Subrata-Rajak/Git-pushing.git
Personal@LAPTOP-SKVEHBA2 MINGW64 /e/git pushing (main)
$ git remote -v
origin https://github.com/Subrata-Rajak/Git-pushing.git (fetch)
origin https://github.com/Subrata-Rajak/Git-pushing.git (push)
Personal@LAPTOP-SKVEHBA2 MINGW64 /e/git pushing (main)
$ git remote add origin https://github.com/Subrata-Rajak/Git-pushing.git
Personal@LAPTOP-SKVEHBA2 MINGW64 /e/git pushing (main)
$ git remote -v
origin https://github.com/Subrata-Rajak/Git-pushing.git (fetch)
origin https://github.com/Subrata-Rajak/Git-pushing.git (push)
echo "# earlycareersweb" >> README.md
git init
git add README.md
git add .
git commit -m "first commit"
git branch -M main
git remote add origin RepoUrl
git push -u origin main