1 Answer
- Newest
- Most votes
- Most comments
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>
.
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 7 months ago
I am facing the same issue.