1. After the Git branch rebase, 2 commits appeared duplicated. See Figure 1.

2. First, reset the version to the last commit of today. See Figure 2.

3. Reset type: Hard reset.
4. The local repository has been reset to the last commit of today. The 2 commits are no longer duplicated. See Figure 3.

5. Pushing the code failed and prompted to pull first. Previously, pulling and merging before pushing again was exactly what caused the 2 commits to be duplicated. See Figure 4.

6. Push the code again, using the option Force: Known Changes. See Figure 5.

7. Checking the commit history on the remote repository, the 2 commits are no longer duplicated. Since I am essentially the only one using this branch, I can continue to use force push in the future. See Figure 6.

