Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substituir checkout por switch / restore #1

Open
Misterio77 opened this issue Aug 3, 2023 · 2 comments
Open

Substituir checkout por switch / restore #1

Misterio77 opened this issue Aug 3, 2023 · 2 comments
Assignees

Comments

@Misterio77
Copy link
Member

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á)

@Ryrden
Copy link
Collaborator

Ryrden commented Aug 3, 2023

Perfeito, vou reajustar

@Misterio77
Copy link
Member Author

qq dúvida, me dá um salve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants