From 5c11421793915d9a0ae87ab6623486db4ec84436 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 24 Feb 2025 10:52:37 +0000 Subject: [PATCH] Add useful_git_commands.md Start of adding a set of useful git commands Signed-off-by: Arif Ali --- useful_git_commands.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 useful_git_commands.md diff --git a/useful_git_commands.md b/useful_git_commands.md new file mode 100644 index 0000000..8a08933 --- /dev/null +++ b/useful_git_commands.md @@ -0,0 +1,19 @@ +# Useful git commands + +Check difference between to branches/tags and will exclude the changelog + +``` +git diff @..pkg/import/4.8.1-2 -- ':(exclude)debian/changelog' +``` + +Check only the files, in this example the debian folder + +``` +git diff @..pkg/import/4.8.1-2 -- 'debian/' +``` + +Check differences in the debian folder, but exclude the changelog + +``` +git diff pkg/import/4.8.1-2..@ -- debian/ ':(exclude)debian/changelog' +``` \ No newline at end of file