-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.Git Diff.txt
More file actions
23 lines (12 loc) · 837 Bytes
/
7.Git Diff.txt
File metadata and controls
23 lines (12 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Differnce of Files:
--------------------------------------------------------------------------------------------------------------
If we modified the files and haven't commited yet then we can see the difference of files using the command:
$ git diff
The above commmand compares the files of staging area and working directory.
---------------------------------------------------------------------------------------------------------------
For comparing the current staged area with the previous staged area:
$ git diff --staged
-------------------------------------------------------------------------------------------------------------
Commit the changes using commit command
$ git commit -m "Changes Commited"
---------------------------------------------------------------------------------------------------------------