Question

I run the command:

git commit -m 'initial commit'
git add .

Then the screen gave me the information. git-add

I think that the files were added to the remote cloud. But why I can't find them in my bitbucket account.

Était-ce utile?

La solution

The order is not correct.

Modified files are not committed in this case.

You should add those files before committing to BitBucket

git add .
git commit -m 'initial commit'

Study the guide for a better understanding.
Basics of Working in Local Repository Git

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top