Skip to content

Instantly share code, notes, and snippets.

@hirofumihida
Last active March 14, 2019 01:03
Show Gist options
  • Save hirofumihida/23635e7cacf77cb43462ce64b228bdf0 to your computer and use it in GitHub Desktop.
Save hirofumihida/23635e7cacf77cb43462ce64b228bdf0 to your computer and use it in GitHub Desktop.
Git Command Memo

Git Command Memo

create branch

git branch new-function
git branch

git checkout new-function
  • or
git checkout -b new-function

add and local commit

git status
git add .
git status
git commit -m "comment"

push to remote branch

git push -u origin new-function

merge to master

git checkout master
git branch

git merge new-function
git push

delete branch

git branch -d new-function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment