I use Github for my project in Android Studio 3.3.1 I use the following code to return to a point both local repository and remote repository.
The line 1 can be launched in Android Studio 3.3.1 IDE.
Can the line 2 be launched in Android Studio 3.3.1 IDE ? If so, how can I do?
And more, does it mean the content of will overwrite the content of remote without merger when I use force parameter to push ?
Code
git reset --hard <commit_hash>
git push origin <branch_name> --force
To Geno Chen: Thanks!
But Force Push is disabled, you can see the following image. I use Android Studio 3.3.1 in Windows 10 OS.