`
annan211
  • 浏览: 471858 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

git 产生Related Changes

    博客分类:
  • git
 
阅读更多
git 产生Related Changes
1 备份本地修改
2 git reset --hard commit-id ##reset 到一个较远的分支 且reset过程中不允许出现merge,如果出现则再次选择更远的分支
3 reset 之后,使用git status 查看文件修改,如有修改 使用git checkout -- filename 把修改也回退完全才可以

git提交尽可能不要中途放弃,如果需要提交到同一个修改,可以使用 git commit --amend
分享到:
评论

相关推荐

    Git Pocket Guide.pdf

    Git is a tool for tracking changes made to a set of files over time, a task traditionally known as “version control.” Although it is most often used by programmers to coordinate changes to software ...

    Git Recipes

    Whether you’re relatively new to git or you need a refresher, or if you just need a quick, handy reference for common tasks ...People who need a quick, practical reference for everything related to Git.

    smartgit 19.1.5 windows 安装包

    smartgit 原版安装包 ... 一个很好用的工具 SmartGit 19.1.5 (2019-12-05) ...- applying changes from default settings (startup.settingsToReplaceFromDefaults) did not work when upgrading from old XML files

    weapp-beauty:一个测颜值的小程序,只为最美的你~

    weapp-beauty 一个测颜值的小程序,只为最美的你~ Usage 没有使用任何第三方框架或者工作流的东西,直接用最新的微信开发人员工具...Commit your changes to your own branch: git commit -am 'Add some feature' Pu

    linux kernel in a nutshell

    - **Reconfiguring the Kernel**: Adjusting the configuration to accommodate changes in the new kernel version. - **Automation Tools**: Automated tools and scripts can simplify the upgrade process, ...

    hui bian software code style guidelines

    - Utilize Git or another VCS to manage changes and track revisions. - **Continuous Integration/Continuous Deployment (CI/CD):** - Set up CI/CD pipelines to automate testing and deployment processes...

Global site tag (gtag.js) - Google Analytics