随笔分类 - git常用命令
摘要:git checkout用于切换分支、撤销修改或恢复文件 切换分支 git checkout my_branch 创建分支并切换到新分支 git checkout -b new_branch 恢复文件到最新提交版本 git checkout my_file 等同于 git restore 撤销本地修
阅读全文
摘要:Git版本管理流程 TODO 代码回退 git revert 反向修改某一次commit的内容,本次撤销操作也会视为新的操作 git reset --soft/hard xxx 重置回先前的版本 多分支与代码回退 暂存本地更新 不commit: git stash后,git pull更新最新的代码,
阅读全文
摘要:+ git clone + git pull # pull 拉 + git push # push 推 + git status + git diff <file> + git log + git stash 暂存 Git命令 下载仓库到本地 git clone https://github.com
阅读全文

浙公网安备 33010602011771号