> For the complete documentation index, see [llms.txt](https://dojo.lkmx.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dojo.lkmx.io/git/hacer-un-fast-forward-merge-en-git.md).

# Hacer un Fast Forward Merge en Git

El siguiente código crea una nueva rama, le agrega dos commits y luego la integra en la línea principal con una combinación de avance rápido.

```
# Start a new feature
git checkout -b new-feature main
# Edit some files
git add <file>
git commit -m "Start a feature"
# Edit some files
git add <file>
git commit -m "Finish a feature"
# Merge in the new-feature branch
git checkout main
git merge new-feature
git branch -d new-feature
```

## Enlaces de referencia

* <https://www.atlassian.com/git/tutorials/using-branches/git-merge>
