Skip to content

Use git to save your changes #3

@bitfishxyz

Description

@bitfishxyz

Asume there is a folder mygit and no files in it.

initialize reposity

git init

then git will create a folder named .git inside mygit.

Notice:If any folder or file 's name begin with ., it will be hidden. You can use ls -a to see any hidden files in a folder.

This folder will save changes but it will ignore itself's changes.

working directory -- stage -- timeline

there are three comcepts you must understand.

  • working directory: the files inside mygit but outside .git.
  • timeline: It save history of your changes, the information is saved in .git
  • stage: a mid-situation from you working dir to timeline.

working directory saves you recent files, but stage and timeline save you changes!!!!

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