custom pages

adunit2

adunit3

adunit4

Dec 25, 2012

How to view Staged and unstaged files in Git

In Git, Staging means what are the files you have changed those files are added by "git add ." (But not committed into git). simply we can tell "Changes that are staged but not committed".

Similarly in your branch you have changed few files but not yet staged using "git add ."  that means "changes that have not been staged".

git diff - will give you UNSTAGED files list and what are the changes you have done.

git diff -- staged command will give you what are the files and what are the changes on those files that you have staged using "git add" command.

No comments:

Post a Comment