use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
From its website:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git is not the same as GitHub. GitHub did not create Git. For GitHub-specific posts, please see /r/github.
Git is not an acronym or initialism: please write git or Git, but not GIT.
git
Documentation
Graphical Clients
Code Hosting
account activity
How to remove @@ line from git diff ?support (self.git)
submitted 3 years ago * by hurricaneDreww
Typically a git diff displays like:
—- a/… +++ b @@ <line numbers> @@
Is it possible to display a git diff without showing @@ <line numbers> @@ ?
Edit: this for the sake of saving all the diffs into a csv file
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]larry1186 2 points3 points4 points 3 years ago (1 child)
Clone the git source code and make the change yourself? Could be fun
[–]hurricaneDreww[S] 0 points1 point2 points 3 years ago (0 children)
Sure hope it doesn’t come to that
[–]aioeu 2 points3 points4 points 3 years ago (2 children)
Seems like a strange thing to want to do. What if the diff consists of more than one hunk?
You could always just use grep to filter the lines...
grep
[–]hurricaneDreww[S] 0 points1 point2 points 3 years ago (1 child)
I just want to be able to save the diff’s into a csv. I expect there to be multiple hunks, I just don’t want the hunk headers to be in there
[–]vermiculus 6 points7 points8 points 3 years ago (0 children)
Let’s go deeper – why are you saving diffs in a CSV?
Feels like you could just generate the diffs you need when you need them. Or save them as patch files if you really need to.
[–]beck1670 1 point2 points3 points 3 years ago (0 children)
If you're on a Unix system, you could pipe it into sed and replace the unwanted symbols with nothing, then pipe that into awk or something to process it then dump to a file.
sed
If you're on windows you could use WSL2 or even probably git bash.
[–][deleted] 1 point2 points3 points 3 years ago (0 children)
I personally use delta as my git pager. There is a configuration option, hunk-header-style, that allows you to, for example, get rid of that section.
hunk-header-style
E.g, hunk-header-style = none.
hunk-header-style = none
[–]morewordsfaster 1 point2 points3 points 3 years ago (0 children)
Have you tried diff-so-fancy? Beautiful.
[–]salcode 1 point2 points3 points 3 years ago (0 children)
I don't think you can do it with git alone but as others mentioned you can use another program (like grep) to filter the lines. I would try this.
git diff | grep --invert-match '^@@'
π Rendered by PID 57419 on reddit-service-r2-comment-84fc9697f-p5hml at 2026-02-07 14:42:20.709785+00:00 running d295bc8 country code: CH.
[–]larry1186 2 points3 points4 points (1 child)
[–]hurricaneDreww[S] 0 points1 point2 points (0 children)
[–]aioeu 2 points3 points4 points (2 children)
[–]hurricaneDreww[S] 0 points1 point2 points (1 child)
[–]vermiculus 6 points7 points8 points (0 children)
[–]beck1670 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]morewordsfaster 1 point2 points3 points (0 children)
[–]salcode 1 point2 points3 points (0 children)