abapGitServer icon indicating copy to clipboard operation
abapGitServer copied to clipboard

Revert commit

Open i302574 opened this issue 7 years ago • 2 comments

Hi there,

Would be nice to have a possibility to revert a commit. Assuming somehow you do a commit to master and you realize you don't want that.. going to previous commit would be an option. Is this possible and I missed it?

Thanks & regards, Lucian

i302574 avatar Jul 27 '18 17:07 i302574

hi, are you using abapGit as client? you can always add another commit reverting the previous, but that would not look nice in the history. Another option is to rebase the branch to the previous commit, which I think should be a client feature. However there should be a setting in the server, if it is allowed to rewrite the git history

larshp avatar Jul 27 '18 17:07 larshp

Hi Lars, I must say that I'm an ABAPer with very limited Git know-how. I am looking to learn about it. Using abapGit & abapGitServer as I don't have SSL config authorization. I had only the master branch (does not make much sense to have branches in ABAP as same object cannot have multiple versions right? ) and deleted a method from a class. Then I was not able to find the revert function. From Atlassian tutorial: "

If we execute git revert HEAD, Git will create a new commit with the inverse of the last commit.

"

Hope that now I made my question more clear, thanks in advance for help!

i302574 avatar Jul 30 '18 10:07 i302574