What is Initial Commit?

Asked

Viewed 2,779 times

6

I’m learning to use Git, and I wanted to understand what this initial commit line looks like in the video class I’m seeing but it’s different in my environment.

I want to understand what it’s for and how to set it up (I want to leave it as an initial commit, if it makes any difference, thank you)

inserir a descrição da imagem aqui

  • Initial commit is just the first commit that was performed in the project, no?

1 answer

13


Probably your teacher already gave some commit and this one wrote "Initial commit", in the project on your machine there are still no commit’s, to hit from a commit

git add .
git commit -m "Initial Commit"

Ready, your return will be equal.

Git add

The git add adds files to the commit, the . warns that they will all be.

Read More

Git commit

The git commit sends to the local version of your machine, -m allows you to place a message in the sequence.

Read More

Note: The name "Initial Commit" is a common name to use in new commits, meaning "Initial Commit" there are even texts talking about this custom.

Read More

Browser other questions tagged

You are not signed in. Login or sign up in order to post.