forked from swcarpentry/git-novice
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
beta-stageTo do before upgrade life cycle to betaTo do before upgrade life cycle to betadocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
- add revert demo https://github.com/Bisaloo/revertdemo/
- added in https://epiverse-trace.github.io/git-rstudio-basics/05-history.html#these-commands-are-so-similar
- linked to https://www.atlassian.com/git/tutorials/undoing-changes
keypoints:
- Once changes have been committed they are generally permanent
- Use
git checkoutto move around and review the commit history git revertis the best tool for undoing shared public changesgit resetis best used for undoing local private changesgit cleanfor undoing uncommitted changes- use
git restoreto discard changes in working directory [this is the revert button in RStudio - misunderstanding]
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
beta-stageTo do before upgrade life cycle to betaTo do before upgrade life cycle to betadocumentationImprovements or additions to documentationImprovements or additions to documentation