Revert / Move HEAD of the commit history
See original GitHub issueI 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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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. 😃
@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.