Git Commands ( Part 02 ) (Create,Add,Check,Different)
- Navigate to the "git folder" folder that we created earlier. now git init tell git to make it a repository. A repository is a storage area where a version control system stores old revisions of files and information about who changed what, when.
- Add all file in the directory and commit the change
- check the commited file using the log
- git diff Shows file differences not yet staged
- git diff --staged Shows file differences between staging and the last file version
- suppose you have changed multiple file at a time.so now want to see difference between the version but now just a single file.
No comments:
Post a Comment