Horje
how to delete a commit in git remotely Code Example
how to delete a commit in git remotely
If you want to delete for example the last 3 commits, run the following command to remove the changes from the file system (working tree) and commit history (index) on your local branch:

git reset --hard HEAD~3
Then run the following command (on your local machine) to force the remote branch to rewrite its history:

git push --force




Shell

Related
connect ps4 controller to pc linux Code Example connect ps4 controller to pc linux Code Example
helm install namespace example Code Example helm install namespace example Code Example
rpm fusion repo install fedora Code Example rpm fusion repo install fedora Code Example
ubuntu start pycharm Code Example ubuntu start pycharm Code Example
install composer wsl Code Example install composer wsl Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9