git reset head of master
git fetch origin
git reset --hard origin/master
Remember this forevergit fetch origin
git reset --hard origin/master
git reset --hard <commit-hash>
git push -f origin master # only works for unprotected branches that allow force pushgit reset --hard f414f31
git reset --soft HEAD@{1}
git commit -m "Reverting to the state of the project at f414f31"
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.gitgit reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev
Also in C++:
- pgadmin install ubuntu
- fenser öffnet sich nicht powreshell
- sudo cd command not found
- delete branches in bulk git
- github pages with favicon
- how to remove bin folder from git
- Script to detect and clone display
- how to use /dev/urandom
- ffmpeg take screenshot
- protoc-gen-grpc
- conda install matplotlib
- bash history delete entry
- bash uppercase bad substitution
- kazam install ubuntu
- timeshift install
- suse linux update
- how to download files using cmd
- chcek number of cpus available on linux machine
- grep on mac os terminal
- see changes git command line
- github actions
- find next greater number with same digits
- ubuntu 20.04 ntfs read only
- Pearson correlation