Skip to content

Backup your working directory. #5

@bitfishxyz

Description

@bitfishxyz

Once you have committed, timeline is unchangable. But you can change you working directory with follw commands

git checkout -- <file>
  • if it have not add to stage, then back up to last commit.
  • if it have add to stage, then back up to last commit + changes in stage.

git reset HEAD <file>

throw change on stage.


git reset --hard commitID

back working directory to snapshot of commitID


git reflog

see all commit ID

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions