<commit_before>---
layout: post
title: Git
tags: git
permalink: git
---

## fatal: CRLF would be replaced by LF in ...

Because there is differenced end of line in dos and unix.

```sh
# open file that error in vim
:set noendofline binary
:wq
```

## Reference
1. [git replacing LF with CRLF](http://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf)<commit_msg>add global gitignore<commit_after>---
layout: post
title: Git
tags: git
permalink: git
---

## fatal: CRLF would be replaced by LF in ...

Because there is differenced end of line in dos and unix.

```sh
# open file that error in vim
:set noendofline binary
:wq
```

## Global Ignore

```sh
# set where is global gitignore file
$ git config --global core.excludesfile ~/.gitignore_global
# write some ignore file in global gitignore
$ echo "tags" >> ~/.gitignore_global
```

## Reference
1. [git replacing LF with CRLF](http://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf)
{'fraction_non_alphanumeric': 0.12331606217616581, 'fraction_numerical': 0.016580310880829015, 'mean_word_length': 3.953846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1273293', 'n_tokens_mistral': 346, 'n_tokens_neox': 315, 'n_words': 117}