--- Tags: GIT, GITHUB --- # Comandos GIT ### Removendo cache de um diretorio ```shell= git rm -r --cached dist/ ``` ### Criar uma nova branch localmente: ```shell git branch <nome do branch> ``` ### Para apagar o branch localmente: ```shell git branch -D <nome do branch> ``` ### Para apagar o branch remotamente: ```shell git push <nome do origin> <nome do branch> --delete ``` ### Criando uma tag local: ```shell= # git tag -a <version> -m "<message>" git tag -a 1.0.0 -m "release 1.0.0" ``` ### Subindo a tag remota: ```shell= # git push origin <tag> git push origin 1.0.0 ``` ### Resetando para branch remota: ```shell= git reset --hard origin/master ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up