git add后我的文件在哪里?

时间:2014-04-24 01:52:33

标签: bitbucket

我运行命令:

git commit -m 'initial commit'
git add .

然后屏幕上给了我相关信息。 git-add

我认为文件已添加到远程云中。但为什么我无法在我的bitbucket帐户中找到它们。

1 个答案:

答案 0 :(得分:0)

订单不正确。

在这种情况下,未提交已修改的文件。

您应该在提交到BitBucket

之前添加文件
git add .
git commit -m 'initial commit'

学习指南以便更好地理解。
Basics of Working in Local Repository Git