Skip to content

Instantly share code, notes, and snippets.

@mosasiru
Last active August 29, 2015 14:22
Show Gist options
  • Save mosasiru/c4a0b4620e5b0d93ca2e to your computer and use it in GitHub Desktop.
Save mosasiru/c4a0b4620e5b0d93ca2e to your computer and use it in GitHub Desktop.
git覚えるべきコマンド集 (普段使うコマンドの99%がこれ)
git clone https://github.com/atilika/kuromoji
git pull
git status
git branch
git branch -a
git log
git add .
git add hoge
git co master
git co -b topic/branch
git merge topic/branch
git reset HEAD~
git co -- hoge
git reset --hard HEAD
git diff topic/branch
git diff HEAD~
git stash
git stash pop
git push origin HEAD
git commit -m "fix"
git commit --amend -m "fix"
git mv hoge fuga
git rm hoge
git tag 2015061301
@mosasiru
Copy link
Author

git rebase, git cherry-pick, git reflogはまれにつかってるけど覚えなくて良いと思う

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment