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

add example on git revert + differenciate from git restore #59

Open
avallecam opened this issue Mar 11, 2024 · 0 comments
Open

add example on git revert + differenciate from git restore #59

avallecam opened this issue Mar 11, 2024 · 0 comments
Labels
beta-stage To do before upgrade life cycle to beta documentation Improvements or additions to documentation

Comments

@avallecam
Copy link
Member

avallecam commented Mar 11, 2024

keypoints:

  • Once changes have been committed they are generally permanent
  • Use git checkout to move around and review the commit history
  • git revert is the best tool for undoing shared public changes
  • git reset is best used for undoing local private changes
  • git clean for undoing uncommitted changes
  • use git restore to 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)
@avallecam avallecam changed the title revert or reset add example on revert + differenciate from reset Mar 11, 2024
@avallecam avallecam changed the title add example on revert + differenciate from reset add example on git revert + differenciate from git restore Mar 11, 2024
@avallecam avallecam added alpha-stage To do before upgrade life cycle to alpha documentation Improvements or additions to documentation beta-stage To do before upgrade life cycle to beta and removed alpha-stage To do before upgrade life cycle to alpha labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-stage To do before upgrade life cycle to beta documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant