There are 3 different stages in git. Detail about each stage as follows :-
- Working :- This is the stage where all the changed files persists.
change a file and type git status command it will show you the file as unstaged. - Staged :- This is the stages where the files will be surely committed in the next commit. Change some files and type command git status it will show you files in unstaged area. now type git add --all. This command will change the area of the files from working to staged. you can see by typing command git status.
- Commit :- This is the area where files are in committed state.