# git-test **Repository Path**: chen-jiagui/git-test ## Basic Information - **Project Name**: git-test - **Description**: git 误提交代码 git操作 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-25 - **Last Updated**: 2023-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # git 1.已提交,没有push 1)git reset --soft 撤销commit 2)git reset --mixed 撤销commit和add两个动作 2.已提交,已经push 1)git reset --hard 撤销并舍弃版本号之后的提交记录。使用需谨慎。 2)git revert 撤销,但保留了提交记录。