question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Revert / Move HEAD of the commit history

See original GitHub issue

I am experimenting with a dataset and I want to revert to the last commit and undo all the changes that I have done since this last commit.

I tried to do a simple checkout on the hash of the last commit:

ds.checkout('<last_commit_hash>')

But when starting to modify the dataset again, hub is automatically checking me out on a new generated branch:

Automatically checking out to branch '<new_branch_name>' as not currently at the head node of branch 'main'.

How can I revert to my last commit or move the HEAD back to this last commit?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mikayelhcommented, Mar 15, 2022

perfect, @LucasVandroux, our pleasure! In the meantime, you are welcome to join our slack community to stay in tune (although we can update you here as well). It’s slack.activeloop.ai. 😃

1reaction
LucasVandrouxcommented, Mar 15, 2022

@mikayelh, @AbhinavTuli, @istranic thank you for your fast replies. I am looking forward to this feature to be able to experiment different transformations and always be able to roll back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - How can I move HEAD back to a previous location? ...
"Undo" the given commit or commit range. The revert command will "undo" any changes made in the given commit. A new commit with...
Read more >
Git Revert | Atlassian Git Tutorial
The git revert command is used for undoing changes to a repository's commit history. Other 'undo' commands like, git checkout and git reset...
Read more >
How to reset, revert, and return to previous states in Git
Where the reset command moves the branch pointer back in the chain (typically) to "undo" changes, the revert command adds a new commit...
Read more >
How To Git Reset to HEAD
To hard reset files to HEAD on Git, use the “git reset” command with the “–hard” option and specify the HEAD. $ git...
Read more >
Using 'git reset' to revert to previous commit
HEAD shows your current branch, or current commit, meaning that all git reset –hard HEAD will do is to throw away all of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found