larshp / abapGitServer

Git server implemented in ABAP
MIT License
64 stars 25 forks source link

Revert commit #123

Open i302574 opened 6 years ago

i302574 commented 6 years ago

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

larshp commented 6 years ago

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

i302574 commented 6 years ago

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!