Search code examples
bitbucketgit-commitbitbucket-cloud

Commit new file in Bitbucket Cloud generates "We had trouble committing your changes"


I created a new file in Bitbucket Cloud (using the web interface - bitbucket.org).

I followed the next steps:

  • copied & pasted a value as file name
  • added a file content
  • clicked on Commit
  • changed the default commit message
  • Commit

and I got the following message:

We had trouble committing your changes.

Commit changes - trouble

How can I solve this?


Solution

  • It is a bitbucket bug.

    It happens when you pasted a text using right click > Paste and no key was pressed when the cursor what inside the input box.

    When you get the message:

    We had trouble committing your changes.

    you can see "Creating on branch" below (without the file name).

    Creating on branch

    When it works fine, you will see the file name between "Creating" and "on branch".

    Creating file on branch

    Possible solutions:

    • Click in the file name input box and press a key
      • E.g.: Ctrl / Shift / Alt / Enter
      • Not OK: Tab / Esc
    • Paste again the text by using Ctrl + V
    • Type the text instead of pasting it