git push -u origin <branch-name>
git push -u origin branchName
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
git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>
git init
# Optional: create branch
git checkout -b branch_name
git add .
git commit -m "Adds existing project to GitHub remote repository"
git remote add origin https://github.com/username/example-project.git
git pull --rebase origin main
# Resolve merge conflicts if needed
git push origin main
git checkout -b my_new_branch
git commit
github@branch/c/remote/push (main)
git switch -c new-branch
git push <remote> <branch with new changes>:<branch you are pushing to>
pushing to an existing branch
github@branch/c/remote/push (new-branch)
git branch -a
main
* new-branch
remotes/origin/HEAD -> origin/main
remotes/origin/main
remotes/origin/new-branch