Skip to content

Instantly share code, notes, and snippets.

@amazedkoumei
Last active August 29, 2017 05:05
Show Gist options
  • Save amazedkoumei/3924853 to your computer and use it in GitHub Desktop.
Save amazedkoumei/3924853 to your computer and use it in GitHub Desktop.
git command
# diffから"+++ or Binary files"を抽出
git diff master develop | grep "+++\|Binary files"
git ls-files | wc -l
git rm -r --cached Rakefile
git commit -m "delete Rakefile"
git tag -d v1.0.0
git push origin :refs/tags/v1.0.0
git diff master develop | grep "+++\|Binary files"
git checkout master
git merge --squash develope
git merge --squash develop
git commit -m "v1.0"
git push origin master
git push origin master
git tag -a v1.0.0 -m "v1.0.0"
git push --tag
git log -S "word" path/file.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment