Last active
August 29, 2017 05:05
-
-
Save amazedkoumei/3924853 to your computer and use it in GitHub Desktop.
git command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# diffから"+++ or Binary files"を抽出 | |
git diff master develop | grep "+++\|Binary files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git ls-files | wc -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached Rakefile | |
git commit -m "delete Rakefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag -d v1.0.0 | |
git push origin :refs/tags/v1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push origin master | |
git tag -a v1.0.0 -m "v1.0.0" | |
git push --tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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