Last active
February 8, 2016 02:30
-
-
Save tkatochin/f5bcffa8d5afd523fb8b to your computer and use it in GitHub Desktop.
強制push
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
#!/bin/sh | |
git push origin `git rev-parse --abbrev-ref HEAD` -f |
そんなことはなかった。
git config --global push.default current
という設定をしていなければ全ブランチになっちゃうから、設定によらない安全な方法だと思う。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
よく考えたら、もともとブランチ名省略すれば、今のブランチが使われるじゃん?
いらねー。超いらねーコードだ。