Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Substituir checkout por switch / restore #1

@Misterio77

Description

@Misterio77

O comando checkout tem MUITA sobrecarga (manipula HEAD e working dir), então para isso o git introduziu o switch (pra trocar entre branches), e o restore (pra restaurar o working tree pra um especifico ref).

https://git-scm.com/docs/git-restore
https://git-scm.com/docs/git-switch

https://github.blog/2019-08-16-highlights-from-git-2-23/#experimental-alternatives-for-git-checkout (aqui tá escrito experimental, mas deixou de ser experimental a um bom tempo já)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions