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

Need to reset main branch to a specific commit on request #67

Closed
almadigabor opened this issue Oct 12, 2023 · 4 comments
Closed

Need to reset main branch to a specific commit on request #67

almadigabor opened this issue Oct 12, 2023 · 4 comments
Assignees

Comments

@almadigabor
Copy link
Contributor

almadigabor commented Oct 12, 2023

Based on the request of @adityagajbhiye9 the following has to be done:

  • Delete release 2.3.0
  • Reset main branch HEAD to commit c6fa04a

@adityagajbhiye9 please confirm.

@almadigabor almadigabor self-assigned this Oct 17, 2023
@adityagajbhiye9
Copy link
Contributor

verified and confirm.
Thanks

@almadigabor
Copy link
Contributor Author

Done, please check. Steps I did:

  1. Clone main branch to local machine
  2. Hard reset to desired commit git reset --hard c6fa04a
  3. Delete remote tag main git push --delete origin refs/tags/main
  4. Delete local tag main git tag -d main
  5. Force push local branch to origin main git push -f origin main

Final output:

Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/eclipse-tractusx/managed-simple-data-exchanger-backend.git
 + e2691d96...c6fa04a5 main -> main (forced update)

@almadigabor
Copy link
Contributor Author

Let me know if the issue can be closed.

@adityagajbhiye9
Copy link
Contributor

Please close the issue.

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