国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

After pushing your local repository to the remote repository in Git, how do you undo it?
過去多啦不再A夢
過去多啦不再A夢 2017-05-02 09:26:27
0
4
813

As per the title, if an incorrect modification is pushed to the remote repository, is there any way to undo the push?

過去多啦不再A夢
過去多啦不再A夢

reply all(4)
Ty80

You should only be able to roll back the version of your local repository and push it again.

習慣沉默

Just roll back to the previous commit id and push again, but there will still be records on the remote end

洪濤

Submit after revert, but there will be two commits in the history record that are useless. A wrong commit, a commit revert this wrong commit

Of course you can also use reset, such as git reset --hard <commit hash>, and then add -f when pushing to force an update. But this operation is very dangerous. If someone else has checked out your wrong commit and you reset it, others will have errors next time they pull or push.

左手右手慢動作

1.Reset first

git reset HEAD^

2. Modify and then commit

3. Force submission again in an evil way. . .

git push --force
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template