git 常用命令

1、git reset head  git撤销操作

2、git reset commit_id

3、git push 某一个commit

git push <remote name> <commit hash>:<remote branch name> 

# Example:
git push origin 2dc2b7e393e6b712ef103eaac81050b9693395a4:master

posted on 2018-07-10 14:16  minrh  阅读(95)  评论(0编辑  收藏  举报

导航