Asume there is a folder mygit and no files in it.
initialize reposity
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!!!!
Asume there is a folder
mygitand no files in it.initialize reposity
then git will create a folder named
.gitinsidemygit.This folder will save changes but it will ignore itself's changes.
working directory -- stage -- timeline
there are three comcepts you must understand.
mygitbut outside.git..gitworking directory saves you recent files, but stage and timeline save you changes!!!!