Skip to content

Instantly share code, notes, and snippets.

@TopekoX
Created May 3, 2022 05:21
Show Gist options
  • Save TopekoX/61eb3aa571150ed97a8b70f040318534 to your computer and use it in GitHub Desktop.
Save TopekoX/61eb3aa571150ed97a8b70f040318534 to your computer and use it in GitHub Desktop.
Git push to other/new branch
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment