git add local branch to remote code example

Example 1: git new branch push to remote

git push -u origin <branch>

Example 2: add remote branch git

git remote add github git://github.com/jdoe/coolapp.git
git fetch github

Example 3: github Push local branch to Remote

git push origin <Branch_Name>

Example 4: git push in a new branch

git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>

Example 5: Push your branch up to the remote.

$ git push <remote> <branch>

Example 6: git push branch

git checkout -b ma_branche_de_developpement
git push -u repository_distant ma_branche_de_developpement

Tags:

Html Example