Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bisaloo/revertdemo
https://github.com/bisaloo/revertdemo
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bisaloo/revertdemo
- Owner: Bisaloo
- Created: 2022-11-14T13:10:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T13:11:07.000Z (about 2 years ago)
- Last Synced: 2024-10-24T16:18:28.036Z (about 2 months ago)
- Language: R
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo demonstrates how a `git revert` (like 2d57e40e99fcf655fe43913f859c2725c349c86b) is so much more than just a basic 'undo' available in other tools, or just restoring an old version of your file.
By reverting an older commit in your tree, you can create a new chimeric version of your file that never existed before in the history.
In this example repository, you can see the new function computes the product by using `k` as a loop index, which doesn't correspond to any previous version.
**In other words, you can selectively undo older changes, without affecting the more recent changes that took place since then.**