threads / discuss / 48181

Git Question

Subject: Git Question

## tl;dr

3 messages between Mar 29, 2018 and Apr 1, 2018.

replies: 2people: 2as markdown or json

Mark Wartman· Mar 29, 2018, 01:49 UTC · lore
Hello,

I am currently running git version 2.10.1 (Apple Git-78). When I run git config —list: it returns credential.helper-osxkeychain filter.lfs.clean=git=lfs clean — %f filter.lfs.smudge=git-lfs smudge — %f filter.lfs.process=git-lfs filter-process filter.lfs.required=true user.name=markwartman1 user.email=markwartman@d2l.lonestar.edu

I am following this tutorial and I expected to only see user.name & user.email, so what are the filters.lfs’s and the credential.helper?  Should I ignore them, or try to get rid of them?  Please advise.  
What is the best way to upgrade to a newer stable version of git?
Thanks,
Mark
Taylor Blau· Mar 29, 2018, 01:58 UTC · re: Mark Wartman · lore

Re: Git Question

On Wed, Mar 28, 2018 at 08:49:19PM -0500, Mark Wartman wrote:
> I am following this tutorial and I expected to only see user.name &
> user.email, so what are the filters.lfs’s and the credential.helper?
> Should I ignore them, or try to get rid of them?  Please advise.

The `filter.lfs` configuration is set by Git LFS [1] in order to correctly filter large files into your working copy.

You can safely ignore these, or remove them if you are not using Git LFS.

> What is the best way to upgrade to a newer stable version of git?

On macOS, you can use Homebrew [2] to install any version of Git. Install the latest via:

  brew update && brew install git

Thanks, Taylor

[1]: https://git-lfs.github.com [2]: https://brew.sh

Taylor Blau· Apr 1, 2018, 03:15 UTC · lore

Re: Git Question

On Sat, Mar 31, 2018 at 09:06:53PM -0500, Mark Wartman wrote:
Show 5 quoted lines
> I saw this pretty exhaustive .gitignore list that a GitHub Help page
> linked to: 9257657 <https://gist.github.com/octocat/9257657> .  Are
> these configurations from the list something one should install on the
> User/global level, or do you recommend managing it in each and every
> project repository?

If those appear helpful for your project(s), then sure; but this is up to you.

Show 11 quoted lines
> Concerning these items below, when I said I get these when running a:
> git config —list
>
> credential.helper-osxkeychain
> filter.lfs.clean=git=lfs clean — %f
> filter.lfs.smudge=git-lfs smudge — %f
> filter.lfs.process=git-lfs filter-process
> filter.lfs.required=true
>
> I suspect that the GitHub GUI tool has installed them.  Do you find
> that possible?  I ask because I did not write them.

Yes, I believe that GitHub Desktop runs 'git lfs install', which adds these to your configuration.

Thanks, Taylor

← back to recent threads