1

When browsing a repository under the "Code" tab of a project in Visual Studio Team Services. If I browse to a text file in the git repository and select it I see the contents of the file and I have the option to edit the file.

If I edit the file and then save it a git commit message is automatically generated, which is of the form "Updated PreBuild.ps" - if I edited the file Prebuild.ps

I like my git commit messages to be written in the future tense:

If this commit is accepted it will update PreBuild.ps to add some console logging

How do I either type my own commit message or edit the commit message after it has been created in Visual Studio Team Services?

Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228

1 Answers1

4

You can enter the commit message by editing the string "Updated PreBuild.ps" directly before saving the updated file. And you can also click dropdown icon to add more detailed description if you want. enter image description here

And there isn't anyway to edit the commit message from VSTS Web Portal, you need to pull the changes to local and use "git commit --amend" command to update the commit message and then force push it back to remote. You can refer to this question for details: Edit an incorrect commit message in Git

Community
  • 1
  • 1
Eddie Chen - MSFT
  • 29,708
  • 2
  • 46
  • 60