How to revert the code/files that have been merged to the remote Repo
来源:互联网 发布:淘宝搜店铺名搜不到 编辑:程序博客网 时间:2024/05/24 02:46
I pushed the wrong code to the remote Repo and just want to back out the merge.The common way is to use git revert
git revert [the commit you want to back out]
But sometimes I just want to back out several specific files.I do not find a one command way to fix it.Here is the way I use:
- Firstly revert all of the commit:
git revert [the commit you want to revert]
- Then make the revert files to the workspace.
- cancel the modification of the files you don’t want to back out
git checkout -- [the files needed cancel]
- At last just remains the files you want to revert.
阅读全文
0 0
- How to revert the code/files that have been merged to the remote Repo
- How to be sure that message via socket.io has been received to the client?
- Git: How to revert a merge commit that's already pushed to remote branch?
- How to analyse the code
- How to check whether the patches have been applied or not
- How to solve the problem : "You have been logged on with a temporary profile"
- How to use the date format that has been setup as default in Settings?
- how jconsole connected to the remote servicemix
- How to assign the different php files
- How use the Ubutu to remote connect to Windows
- How to use "vi" edit the docs or source code files
- How To Upload Files to the Internet Information Server
- JS How to get the div that sends the event
- The basic things that ALL Java Developer have to know
- How can I recover a file that I deleted in my local repo from the remote repo in Git?
- adult and children. The size and shape of the bikes have been adjusted slightly to ensure that everyone will be accommodated whe
- Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My
- C# How to get the system drive of remote server
- 实现loading、360、网易云播放的css动画
- linux下使用阿里云OSS
- 设计模式系列之「装饰模式」
- HTML5小结
- LocalBroadCast与BroadCast
- How to revert the code/files that have been merged to the remote Repo
- 继承(单继承、多继承、菱形继承、虚继承)
- JS检测移动端横竖屏
- Android studio中添加系统jar包提高优先级
- django使用celery做异步执行过程
- 建造者模式
- POJ A Round Peg in a Ground Hole <凸包判断以及点与多边形的相对位置>
- 正确使用 Volatile 变量
- 配置本地Gradle