git diff e git apply, o jeito adequado de zipar uma branch para envio

1. Gerando um diff.txt

git diff main > footer-diff.txt

2. Aplicando alterações de um diff.txt

git apply footer-diff.txt
VSCode exibindo alterações aplicadas nos arquivos footer.tsx e index.js

--

--

Jack Of All Trades

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store