Skip to content

Instantly share code, notes, and snippets.

@valdineireis
Created September 7, 2021 22:51
Show Gist options
  • Save valdineireis/4426e16b23e897f2282e004c3130f751 to your computer and use it in GitHub Desktop.
Save valdineireis/4426e16b23e897f2282e004c3130f751 to your computer and use it in GitHub Desktop.
Revisão de alguns comandos GIT

GIT - Review

https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

git config --global user.name "John Doe"
git config --global user.email [email protected]

É possível alterar o --global por --local caso queira aplicar as configurações a partir do diretório atual.


git log git log --online git log -p git log -n 2 git log --graph

https://devhints.io/git-log


git init git init --bare git remote add local /c/user/servidor/projeto git remote -v

git clone /c/user/servidor/projeto nome_projeto

git remote rename origin local


git merge outra-branch git rebase outra-branch

https://medium.datadriveninvestor.com/git-rebase-vs-merge-cc5199edd77c


git revert 3sdlkfg9384fgks3948tngw39tg3bg

git stash git stash list git stash apply <numero> git stash drop <numero> git stash pop


git diff git diff 09sdfjf..7df8bsd


git tag -a v0.1.0 -m "Descrição da versão" git push origin v0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment