2019年7月26日 星期五

Azure DevPos Git 的 ForcePush 產生錯誤訊息 TF401027: You need the Git 'ForcePush' permission to perform this action. 的解決方法

最近在刪除 Git 上的敏感資料

使用到 Git 的 ForcePush 產生錯誤訊息


git push origin HEAD:master –force





看起來應該是權限不足
上去 Azure DevPos 找了一下設定





























點選 Manage repositories

























Force push (rewrite history, delete branches and tags) 設定為 Allow

PS.群組我選 Project Collection Administrators 視需求每人選的有所不同

Visual Studio 2017/2019 推薦的擴充功能與更新

參考文章: 覺得 Google 的 Blogger 不太順手?透過 HTML 的 iframe 移花接木 HackMD