• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 1.5.4
    • Git
    • None
    • all
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      It would be nice to have a checkbox in the commit view (or a prompt when the commit fails, due to pre-commit hooks) to force the commit (-n flag)

      GitX (http://gitx.laullon.com/) has this option.

      Example of how this works on the command line:

      $ git commit -m "Added Readme file"
      Pre-Commit message hook failed!
      $ git commit -nm "Added Readme file"
      [master 2db5767] Added Readme file
      1 files changed, 1 insertions, 0 deletions
      create mode 100644 README
      $

            [SRCTREE-1011] Force commit

            KieranA added a comment -

            An option to bypass commit hooks has been added to the commit dialog which uses the --no-verify Git flag

            KieranA added a comment - An option to bypass commit hooks has been added to the commit dialog which uses the --no-verify Git flag

            Ian Suda added a comment -

            Yes, sorry, "Force" is what GitX called it, but it is really for the --no-verify flag.

            Ian Suda added a comment - Yes, sorry, "Force" is what GitX called it, but it is really for the --no-verify flag.

            KieranA added a comment -

            Whilst you mention "force", this isn't to be confused with the push --force flag, the -n in commit is for --no-verify

            KieranA added a comment - Whilst you mention "force", this isn't to be confused with the push --force flag, the -n in commit is for --no-verify

              Unassigned Unassigned
              4db43ceb1ff8 Ian Suda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: