git prompting me before commit -


What is the one way git has given me a "Are you trying to commit one in the production branch. Are you sure (Y / not)? "Messages before every commitment is as clear from the message, I want only one specific branch (say the production branch) to avoid making any mockery.

Set your hint properly and look at the branch you are always in -

If you want better tools like better git prompts, ruby ​​version prompts, python virtual and prompt, etc. Bash-it -

If you want the correct solution that you describe here, set some nickname script for git comma, a pre-commit < / Code> hooks, which will look at your current branch and will prompt you as needed.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -