# Configuración

```bash
git config --global -l
```

```properties
[user]
	name = Manu Artero Anguita
	email = manutero.developer@gmail.com

[push]
	default = simple

[alias]
  ...

[core]
	excludesfile = /Users/cx01885/.gitignore_global

[init]
	defaultBranch = main

[commit]
	template = /Users/cx01885/.stCommitMsg
```

#### .gitignore

1. **Local**: solo para el proyecto
   * [Herramienta para crear .gitignore](https://www.toptal.com/developers/gitignore)
   * [Colección en GitHub (por tipo de proyecto)](https://github.com/github/gitignore)
2. **Global**: fallback para todos tus proyectos

```properties
# MacOS
.DS_Store

# IDE
*~
.vscode

# deps
node_modules
.eggs/
*.pem
.mypy_cache/

# General
log/
*.log

```

### Alias que pueden ser útiles

```
[alias]
	ls = status -s
	head = !git rev-parse HEAD | pbcopy && pbpaste
	h = !git rev-parse HEAD | pbcopy && pbpaste
	l = cherry -v --abbrev=7 origin/master HEAD
	wip = commit -a --amend --no-edit
	check = checkout
	unstage = reset HEAD --
	stats = diff --stat HEAD~1 HEAD
	up = !git fetch && git rebase $(git rev-parse --abbrev-ref origin/HEAD)
	squash = "!function __git_squash() { branch=$1:-master; git rebase -i $(git merge-base branch HEAD); }; __git_squash"
	conflicts = !git diff --name-only --diff-filter=U
	alias=config --get-regexp alias
	super-pull = !git fetch && git reset --hard origin/$(git symbolic-ref --short HEAD)
  ctr-c-ctr-v= rebase
  
```

{% hint style="info" %}
Para hacer el mensaje de un commit, elige una de estas cinco (no te defraudará)

* fix: listing whatever properly
* feat: displaying whatever when whenever
* refactor: move from whatever to whateverito
* chore: house keeping. Mi casa como los chorros del oro
* docs
* \[test]
* \[style]
* \[perf]

{% endhint %}

{% embed url="<https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manu-artero-anguita.gitbook.io/buenas-practicas-con-react/sesion-1/2.-trabajo-eficiente-con-git/configuracion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
