mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Why is it bad to rewind a branch that has already been pushed out?
Mention git-revert as an alternative to git-reset to revert changes. Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
1f7d1a53fe
commit
6e2e1cfb81
|
@ -461,6 +461,8 @@ this branch. If this branch is the only branch containing those
|
||||||
commits, they will be lost. Also, don't use "git reset" on a
|
commits, they will be lost. Also, don't use "git reset" on a
|
||||||
publicly-visible branch that other developers pull from, as it will
|
publicly-visible branch that other developers pull from, as it will
|
||||||
force needless merges on other developers to clean up the history.
|
force needless merges on other developers to clean up the history.
|
||||||
|
If you need to undo changes that you have pushed, use gitlink:git-revert[1]
|
||||||
|
instead.
|
||||||
|
|
||||||
The git grep command can search for strings in any version of your
|
The git grep command can search for strings in any version of your
|
||||||
project, so
|
project, so
|
||||||
|
|
Loading…
Reference in a new issue