Undo a Git Rebase on a local branch

Đăng 07/04/2022 1 phút đọc Source Control - GIT

The Git rebase command is very strong in a feature branding workflow.

Git tutorial: Git rebase

However, it will sometimes make you crazy because of the diverged branch issue.


Simply, to get rid of this situation you need to undo the GIT REBASE.

The following command help you to undo:

git reset --hard origin/{your_local_branch_name}

By this, one guy saved my day. So, I’m happy to share you, guys.

Good luck!

What’s your Reaction?
+1
0
+1
0
+1
0
IVAN NGUYEN
Viết về phần mềm nghiên cứu, phân tích dữ liệu và làm việc trên Mac. Về tôi →

Để lại bình luận

Email của bạn không được công khai.