How to restore a deleted branch in CodeCommit ?

4

Hi, Like Github, is there a way to restore a deleted branch in CodeCommit ?

thiru
質問済み 1年前1309ビュー
1回答
1
承認された回答

When you delete a branch from the console, there is a message that says:

Deleting a branch from AWS CodeCommit cannot be undone from the console. However, users might continue to have a copy of this branch in their local repositories until the next time they pull changes.

Do you have a local copy ? if so you can find the SHA for the last commit of your deleted branch using: git reflog and restore the branch using git checkout -b <branch> <sha>.

profile pictureAWS
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ