DEV Community

ダニエリ for WoMakersCode

Posted on • Edited on

7

[Tutorial Git] git commit: Enviando arquivos para o repositório Git

Vamos supor que temos no nosso repositório a seguinte situação:

Temos dois arquivos novos e vamos fazer o nosso primeiro commit.

arquivos monitorados

Enquanto no fluxo do git,

arquivos no index

Ao colocar os arquivos dentro no repositório, precisamos informar ao Git o motivo desses arquivos, com o comando:

$ git commit -m 'escreva sua mensagem aqui'
Enter fullscreen mode Exit fullscreen mode
  • $ indica que você deve usar o usuário comum para fazer essa operação.

  • pode-se usar aspas simples ou duplas para escrever a mensagem.

No nosso exemplo, temos:

$ git commit -m 'commit inicial'
Enter fullscreen mode Exit fullscreen mode

primeiro commit

Conferindo o estado do Git, temos:

status limpo

E no fluxo,

fluxo commit do git

Esse conjunto de caracteres e números que aparece ao lado da palavra commit é a chave (ou hash) que identifica o próprio.

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

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

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay