554 Andreas:MyRepo(develop)$ git flow start tmpSwitched to a new branch 'feature/tmp'
Summary of actions:- A new branch 'feature/tmp' was created, based on 'develop'- You are now on branch 'feature/tmp'
Now, start committing on your feature. When done, use:
git flow feature finish tmp
555 Andreas:MyRepo(feature/tmp)$ git flow finishSwitched to branch 'develop'Your branch is up-to-date with 'if/develop'.Already up-to-date.
[post-flow-feature-finish] Delete remote branch? (Y/n)Deleting remote branch: origin/feature/tmp.
Deleted branch feature/tmp (was 02a3356).
Summary of actions:- The feature branch 'feature/tmp' was merged into 'develop'- Feature branch 'feature/tmp' has been locally deleted- You are now on branch 'develop'
556 Andreas:ScDesktop (develop)$
. g it/hoks/post-flow-功能-完成
NAME=$1ORIGIN=$2BRANCH=$3
# Delete remote branch# Allows us to read user input below, assigns stdin to keyboardexec < /dev/tty
while true; doread -p "[post-flow-feature-finish] Delete remote branch? (Y/n) " ynif [ "$yn" = "" ]; thenyn='Y'ficase $yn in[Yy] )echo -e "\e[31mDeleting remote branch: $2/$3.\e[0m" || exit "$?"git push $2 :$3;break;;[Nn] )echo -e "\e[32mKeeping remote branch.\e[0m" || exit "$?"break;;* ) echo "Please answer y or n for yes or no.";;esacdone
# Stop reading user input (close STDIN)exec <&-exit 0