xxxxxxxxxx
Create a new branch:
git checkout -b feature_branch_name
Edit, add and commit your files.
Push your branch to the remote repository:
git push -u origin feature_branch_name
xxxxxxxxxx
git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>
xxxxxxxxxx
github@branch/c/remote/push (new-branch)
git clone https://github.com/learn-git-fast/git-branch-examples.git
cd git*
git checkout -b new-branch
github@branch/c/remote/push (new-branch)
git branch -a
touch devolution.jpg
git add .
git commit -m "Are we not gender neutral people? We are Devo?"
git push --set-upstream origin new-branch
github@branch/c/remote/push (new-branch)
touch eden.html
git add .
git commit -m "Eden added"
git push origin
xxxxxxxxxx
# to create a new local branch
git branch <branch-name>
# to push it to the remote repository
git push -u origin <branch-name>