我的同事在 Bitbucket 中创建了一个存储库。我首先在我的计算机中创建了一个文件夹并键入git init
. 之后,我使用以下命令从存储库克隆到我的计算机:git clone address
.
但是当我输入时git branch
,没有回复。它不表明我在哪个分支。
git init
Initialized empty Git repository in /Users/IMAC/GsAdmin/.git/
git clone address
Cloning into 'gsadmin'...
Password:
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 32 (delta 3), reused 0 (delta 0)
git branch
git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .DS_Store
# gsadmin/
nothing added to commit but untracked files present (use "git add" to track)
我的错误是什么?需要一些指导。