Git Branch – Submit Duplicate Questions
1. After the Git branch – after transformation, there are 2 submissions that are duplicated. as shown in Figure 1
2. Reset the version to the last submission today, as shown in Figure 2
3. Reset type: hard reset.
4. The local repository has been reset to the last commit today. 2 submissions will not be repeated. as shown in Figure 3
5, the push code, the push fails, it is required to pull first. Previously, after pulling the merge, push again, and then cause 2 submissions to be repeated. as shown in Figure 4
6. Push the code again, options, mandatory: known changes. as shown in Figure 5
7. Check the submission records on the remote repository, and the 2 submissions are no longer repeated. Since this branch is basically used by me alone, it can be forced to push later. as shown in Figure 6





