- delete the modification of the workspace:
-- <>
- hard roll back the code version,it will not store your modification:
-- < >
- soft roll back the code and will take your modification to the workspace:
-- < >
- roll back the remote branch:
##First make you local branch to the node you want,then push force to the remote
git reset
git push origin HEAD
- create a new local branch:
git checkout -b <local branch name>
- create a remote branch with the same name of the local:
git push origin <your Branch Name>:<your Branch Name>
- set the up-stream of the branch:
git branch --set-upstreamto=<
- roll back some file to a node you want:
git checkout <commit id> -- <file1/to/restore>