Git revert 用法
=> http://tighropete.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MTc6IkdpdCByZXZlcnQg55So5rOVIjt9
Do you have to commit the changes revert made or does revert directly commit to the repo or what?? You want to undo it. So lets try and stick the brief and write a Dummies Guide to git revert.
You've pushed and other people have your bad changes. The reason reset and revert tend to come up a lot in the same conversations is because different version control systems use them to mean different things. Do you have to commit the changes revert made or does revert directly commit to the repo or what??
In particular, by default it creates a new commit for each commit you're reverting. It leaves the files in the same state as if the commit that has been reverted never existed. Closing questions do you have to do something else after? This is what source control is all about. This flag applies the changes necessary to revert the named commits to your working tree and the index, but does not make the commits. You want to undo it.
The Will Will Web - Any changes to tracked files in the working tree since are discarded. And after running git revert do you have to do something else after?
How is git revert used. So lets try and stick the brief and write a Dummies Guide to git revert. A scenario: you've committed twice to master and its bad. You've pushed and other people have your bad changes. You want to undo it. It's not something you can hand-undo in code yourself, say some wizard or package manager changed tons of stuff all over the place - you just want to put it all back how it was. This is what source control is all about. Okay, you're going to use git revert but how. And after running git revert do you have to git revert 用法 something else after. Do you have to commit the changes revert made or does revert directly commit to the repo or what?. Obviously you'll need to push again and probably announce your balls-up to the team. It leaves the files in the same state as if the commit that has been reverted never existed. Closing questions do you have to do something else after. A git revert is just another commit, so e. Do you have to commit the changes revert made or does revert directly commit to the repo. Obviously you'll need to push again and probably announce to the team. Indeed - if the remote is in an unstable state - communicating to the rest of the team that they need to pull to get the fix the reverting commit would be the right thing to do :. The reason reset and revert tend to come up a lot in the git revert 用法 conversations is because different version control systems use them to mean different things. So, there's a lot of confusion where people know what they want to do, but aren't clear on which command they should be using for it. As for your actual questions about revert. Okay, you're going to use git revert but how. Do you have to commit the changes revert made or does revert directly commit to the repo or what?. By default, git git revert 用法 prompts you for a commit message and then commits the results. I quote : --edit Git revert 用法 this option, git revert will let you edit the commit message prior to committing the revert. This is the default if you run the command from a terminal. This flag applies the changes necessary to revert the named commits to your working tree and the index, but does not make the commits. The revert is done against the beginning state of your index. This is useful when reverting more than one commits' effect to your index in a row. In particular, by default it creates a new commit for each commit you're reverting. You can use revert --no-commit to create changes reverting all of them without committing those changes as individual commits, then commit at your leisure.