Git: How to generate a diff file in git

Tools like reviewboard, allow you the generate code reviews, although they have a rbt tool to generate the code review with diff, sometimes there is a need to generate this diff file manually and upload it,
Below command

 $ git show --full-index > ~/mytest.diff


will generate the diff file which you can use for the same

Comments

Popular posts from this blog

Apache Airflow Wait Between Tasks

Hibernate Interview Questions

Java Spring Interview Questions