Difference between git diff (git patch) and git push -


git push used push changes remote repository. git diff shows changes made since last pull operation remote repository. git diff synonymously used git patch. after getting difference, patch applied through git am or git apply repository updation.

so, these 2 commands fundamentally same or there difference between git diff , git push?

git push push changes made in file repository. last step make add change project.

git diff used see changes made different files since last commit. shows line added or removed project.

the basic flow goes this.

you make changes in project. -> git add -> git diff if want see changes have been made -> commit using git commit -> push committed changes repository using git push.

if new git, learn interactive tutorial http://try.github.com/


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -