gitattributes Questions

2

Solved

Are there any concrete examples, in order to detect wrong languages in GitHub via Linguist attributes? Source: https://github.com/github/linguist linguist-documentation linguist-language lingu...
Competence asked 17/11, 2016 at 15:48

1

The environment: We use Bitbucket Cloud for repository management (and merges) and Jenkins for CI/CD. Branches with open pull requests are built and deployed to a temporary environment (which inclu...
Tetartohedral asked 28/3 at 18:2

4

Solved

My repository uses git LFS and includes lines such as this one in its .gitattributes: *.jar filter=lfs diff=lfs merge=lfs -text There's one .jar file that I want to store in the repo directly, n...
Quadrifid asked 6/8, 2017 at 15:31

2

I'm trying to address files without extensions in .gitattributes: * text=auto *. eol=lf .py eol=lf *. clearly doesn't help. git check-attr --all -- ./foo outputs: ./foo: text: auto How can ...
Common asked 28/6, 2017 at 14:49

1

Solved

This is my repo structure: These are the language stats as detected by GitHub, even though this is a full stack app written primarily in Javascript: This is because it is reading the budget direc...
Lacuna asked 26/7, 2023 at 20:8

3

Solved

I gather there is (despite the lack of documentation) a way to set Git attributes globally; but I'm not clear where to place the necessary gitattributes file. The instructions say they belong in $...
Konstantine asked 19/1, 2015 at 14:21

8

Solved

I have cloned a repository that had inconsistend line endings. I have added a .gitattributes that sets the text attribute for the files I want to normalize. Now when I commit changes I get the mess...
Radiocommunication asked 26/3, 2013 at 15:42

3

I've got a repository that stores all of my Vim settings. It uses submodules to pull in plugins with Pathogen (I've looked at other plugin managers, not interested so far). Due to the way MSYSGit h...
Senaidasenalda asked 10/9, 2015 at 15:41

2

Solved

Can someone help me. I am using Git (GitHub) and trying to decide what to set my *.sql files to in the gitattributes. I've seen people use *.sql diff=astextplain *.sql diff *.sql text=auto I was...
Fustanella asked 26/1, 2015 at 7:42

2

Solved

I'd like to know all distinct extensions of files tracked by git in a given repo, in order to create appropriate .gitattributes file. Example output expected: bat gitignore gradle html jar java ...
Ernest asked 4/12, 2015 at 12:42

1

Is there any way to have multiple .gitattributes files, one in each subfolder, so that files (in this case for more modular management of LFS)? Or is .gitattributes different from .gitignore and on...
Pyrogenous asked 7/4, 2022 at 14:30

3

Solved

We have this in our .gitattributes file: * text=auto eol=lf I'd like to precisely understand what this does. The first part is text=auto. From the documentation: This ensures that all files ...
Stepmother asked 3/4, 2015 at 15:32

3

Solved

We have this in our .gitattributes file: * text=auto eol=lf I'd like to precisely understand what this does. The first part is text=auto. From the documentation: This ensures that all files ...
Annia asked 3/4, 2015 at 15:32

1

Solved

I was reading about the .gitattributes file and the rule to force line endings in some tutorials it's written like * text=auto and in some others, it's like * text=auto eol=lf at the first line of ...
Pasteup asked 8/1, 2022 at 14:52

2

Solved

There are a lot of articles in the web saying it is a good practice to place binary files under LFS. So, .gitattributes file will look like this: ## Fonts *.otf filter=lfs diff=lfs merge=lfs -text...
Proust asked 8/12, 2019 at 15:38

1

Is there any way to temporarily override attributes in git, similarly to how -c can be used to override config options? I would like to call git diff with a specific custom textconv command differ...
Trinhtrini asked 7/1, 2019 at 3:40

5

Solved

There are many related questions involving smudge/clean filters - I have spent some hours reading them, and trying various options, but still failing. I hope I can ask in a way that I get an answer...
Piddle asked 7/4, 2014 at 10:20

2

Solved

Is it possible to add comments or remarks to a .gitattributes file? If yes, how exactly do comment lines look like?
Sori asked 28/11, 2016 at 15:27

2

On my project i use computers with different OS, one is Mac second is with windows. When I use git every change is shown as whole document change. The reason is different end-of-line in these two O...
Kcal asked 12/10, 2016 at 9:28

2

I'm quite sure I understand what No newline at end of file means. I want to provide a pull request of a branch which I created long time ago and rebased (commits might be from the time before .gita...
Lymphoblast asked 21/8, 2018 at 23:17

1

Solved

I was expecting **/ to match any directory in the git repo, but in fact it matches nothing. man gitattributes says: patterns that match a directory do not recursively match paths inside that direc...
Blastomere asked 24/6, 2020 at 6:13

3

I created a repo with some image files. I have .gitignore and .gitattributes that I want to exclude from lfs. So I need to track all files by lfs but not .gitignore and .gitattributes. I' m using ...
Rosemaryrosemond asked 21/8, 2019 at 15:58

3

Is there a way to enforce core.autocrlf=input from within the .gitattributes in order to propagate the policy throughout my colleagues? In detail what I want is to convert to lf on add and leave a...
Okay asked 8/3, 2017 at 9:51

7

Solved

I've a directory structure like this: root/ .git deploy/ Site/ blah/ more_blah/ something.local else.development Rakefile .gitattributes Edit: to further clarify the above, directorie...
Roof asked 2/4, 2011 at 17:35

1

Solved

I need to remove a Git LFS file pointer, and add the file directly to Git. I have a filter in .gitattributes to match certain files: test/**/*.py filter=lfs diff=lfs merge=lfs -text How can I ...
Errand asked 6/12, 2019 at 9:38

© 2022 - 2024 — McMap. All rights reserved.