Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert commit #123

Open
i302574 opened this issue Jul 27, 2018 · 2 comments
Open

Revert commit #123

i302574 opened this issue Jul 27, 2018 · 2 comments

Comments

@i302574
Copy link

i302574 commented Jul 27, 2018

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
Copy link
Owner

larshp commented Jul 27, 2018

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
Copy link
Author

i302574 commented Jul 30, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants