L
L
Larisa2016-11-22 16:18:21
git
Larisa, 2016-11-22 16:18:21

Tortoisegit. How to properly rollback a commit?

I'm trying to learn how to work with commits (rollback of a specific commit).
Tried two options.
First option
1. I make 4 commits.
Vm6d81LSxOG93A.jpg
2. I move master to a commit below
1622566761.jpg
3. I didn't see changes in the file locally until I did "Revert to this revision" on the file name
2a54fe99f8.jpg
4. trying to commit changes to an external repository produces
3591d59b9e.jpg
------------- -------------------------------------------------- ----------
The second option!
1. TortoiseSVN > Show log
2. In the log window that opens, open an additional menu on the desired commit "Revert change by this commit"
978f9cdfc9.jpg
3. Displays a conflict message
83f5ed43e9.jpg
4. In the folder, right-click on the file name TortoiseSVN > "Edit conflicts"
5. The conflict window opens and select "Mark as resolved" and close the window
6. commit (all fields will be filled in by themselves)
7. push without problems
BUT where is the conflict from (
I ask for help from specialists .... on working with TortoiseGit .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Moseychuk, 2016-11-22
@fshp

Reset - Resets the branch pointer and/or index.
Revert - Creates a new commit containing the revert of the selected commit. I don't know what Tortoisegit developers mean by revert.
git push can only be done when the server is able to perform a fast-forward when committing the changes.
But you reset the branch, so fast-forward merge is not possible.
You can get around this with the key force "git push -f"
But if you are not working on the repository alone, then if you were your colleagues, I would kick you.
Until you read Pro Git (in Russian translation "Git for a professional programmer"), you will poke and poke around.

N
Nina Nokhrina, 2017-10-09
@ipnino

Larisa You need to check the "known changes" checkbox here for more details with screenshots

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question