Created
April 5, 2017 11:25
-
-
Save roktas/9b32317946bf9f1b17226eb724f78606 to your computer and use it in GitHub Desktop.
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 | |
# | |
# Fork depolarda master dalında değişiklik yapmayı engelle. | |
if [ "$(git rev-parse --abbrev-ref HEAD)" = master ]; then | |
if git config remote.upstream.url >/dev/null; then | |
cat >&2 <<-EOF | |
Üst geliştirici depo referansı "upstream" belirlendi. | |
Alt geliştirici olarak çalıştığınız depolarda "master" dalında | |
değişiklik yapmayın. Özellik dalı açarak çalışın. Aşağıdaki | |
komutu kullanarak çalışmanıza bir özellik dalı üzerinde devam | |
edebilirsiniz: | |
$ git stash save && git checkout -b «özellik dalı» && git stash pop | |
EOF | |
exit 1 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment