Skip to content

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

Open
@avallecam

Description

@avallecam

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    beta-stageTo do before upgrade life cycle to betadocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions