Remove staged file
```bash
git reset HEAD <file>
```
Revert to previous commit
```bash
git revert <commitHash>
```
Reset all changes to last commit
```bash
git reset --hard <commit> "eg: HEAD^1 refers to last commit"
```
Reset all changes to last commit without resetting files
```bash
git reset --soft <commit> "eg: HEAD^1 refers to last commit"
```
--hard reverts working tree and files back to original state of specified commit
--soft removes commited or stagged files but does not revert workign tree or files
Push a branch to a remote with a differnt named branch
```git push origin local-name:remote-name```