2022年4月13日 星期三

How to recover git push -f with specific sha

1)git reflog show remotes/origin/{BRANCH_NAME}

2) use https://github.url/repo/commit/a921643c to verify change

3) git reset --hard with specific sha

4) git push -f to recover with this specifc sha

沒有留言:

張貼留言