Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View files that I have committed locally in Git and Mercurial

Tags:

git

mercurial

Once I have locally commited my code, doing either hg status or git status will not show me the files I have already committed (but not pushed).

How can I view the files that are ready to be pushed?

like image 970
codecompleting Avatar asked Dec 07 '25 03:12

codecompleting


1 Answers

For Mercurial you simply do :

hg outgoing

Or you can do hg out which is the shorthand of the outgoing command.

outgoing take some arguments to refine the output or show additionnal information, you can see the help by doing hg help outgoing.

For example, if you want to see the diff with the remote repository, add the patch option :

 hg out -p
like image 53
krtek Avatar answered Dec 08 '25 18:12

krtek