git checkout <branchName> -- <filename>
git checkout <commitHash> -- <filename>
# 将制定的提交应用于当前分支,可同时多个
git cherry-pick <commitHashA> <commitHashB>git commit -v --amendgit revert HEAD --no-edit
git push origin <branch name>这个命令相当于重新commit了一次,是上一个commit的逆操作。