DEV Community

ダニエリ for WoMakersCode

Posted on • Edited on

4

[Tutorial Git] Visualizando o commit no modo gráfico

A depender do tamanho do projeto, a visualização dos commits pelo terminal pode ser difícil. Podemos fazer a visualização em modo gráfico através do Git repository browser.

$ sudo apt install gitk
Enter fullscreen mode Exit fullscreen mode
  • $ indica que você deve usar o usuário comum para fazer essa operação.
  • sudo é o comando que dá permissões de super usuário temporariamente; assim é possível fazer a instalação de programas.
  • apt do inglês, Advanced Package Tool, em português, Ferramenta de Empacotamento Avançada; é a ferramenta que nos ajuda na instalação, atualização e desinstalação de programas, entre outras funções.
  • install é o comando de instalar, indicando ao apt o que fazer.

Assim ao digitar no terminal

$ gitk
Enter fullscreen mode Exit fullscreen mode

A seguinte janela abrirá:

visualização gráfica do fluxo do git

Visualizando grafo de commits

Outra maneira de visualizar o grafo de commits, porém sem instalar nada é através do comando:

$ git log --graph
Enter fullscreen mode Exit fullscreen mode

Abaixo, um exemplo do retorno.

grafo commit

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay