What is Initial commit?

3

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

I want to understand what it is for and how to configure it (I want to leave it as an initial commit, if that makes any difference, thank you)

    
asked by anonymous 20.11.2017 / 13:00

1 answer

7

Your teacher probably already did some committing and in this one wrote "Initial commit", in the project in your machine there are still no commit's, to get right of a commit

git add .
git commit -m "Initial Commit"

There, your return will look the same.

Git add

The git add adds files to the commit . 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 sequence.

Read More

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

Read More

    
20.11.2017 / 13:07