Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git-commands
Git clone com específico branch:
$ git clone --branch <branchname> <remote-repo-url>
Remover um arquivo específico
$ git rm --cached <filename>
Remover todos os arquivos gitignore
$ git rm -r --cached.
$ git add .
$ git commit -m "MESSAGE"
Novo branch com untracked files
$ git add -A
$ git stash
$ git checkout <branch>
$ git stash pop
Trocar url remote
$ git remote set-url origin <new_url_remote>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment