xxxxxxxxxx
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)
xxxxxxxxxx
# Push newly created local branch to remote
git push --set-upstream origin <branch name>
xxxxxxxxxx
git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>
xxxxxxxxxx
# to create a new local branch
git branch <branch-name>
# to push it to the remote repository
git push -u origin <branch-name>
xxxxxxxxxx
git checkout -b ma_branche_de_developpement
git push -u repository_distant ma_branche_de_developpement