git diff - List out all the files that I have pushed to the remote Git repo -
how list out files have pushed in last push remote git repository?
i have project , have modified few files , add, commit , push
remote. how see list of files have pushed remote?
should have last commit id?
you can use remote-tracking branches , reflog see changes have pushed. example, if pushed code origin/master
, can list files changed following:
git diff origin/master@{1} origin/master --name-status
the syntax says take difference between origin/master@{1}
, i.e. origin/master
@ 1st previous position, , current state of origin/master
, last known local repo.
Comments
Post a Comment