您好我想切换到特定分支part1-es6
但是,当我克隆这个仓库并检查这个分支时,文件列表的方式不同,我做错了什么。此外,git branch
并未列出任何内容!除了主人。
bsr[~/tmp] $ git clone https://github.com/jlongster/backend-with-webpack.git
Cloning into 'backend-with-webpack'...
remote: Counting objects: 106, done.
remote: Total 106 (delta 0), reused 0 (delta 0), pack-reused 106
Receiving objects: 100% (106/106), 88.28 KiB | 0 bytes/s, done.
Resolving deltas: 100% (41/41), done.
Checking connectivity... done.
bsr[~/tmp] $ git branch
fatal: Not a git repository (or any of the parent directories): .git
bsr[~/tmp] $ cd backend-with-webpack/
bsr[~/tmp/backend-with-webpack] [master] $ git branch
* master
bsr[~/tmp/backend-with-webpack] [master] $ git checkout -b part1-es6
Switched to a new branch 'part1-es6'
bsr[~/tmp/backend-with-webpack] [part1-es6] $ ls
README.md build gulpfile.js package.json src static
bsr[~/tmp/backend-with-webpack] [part1-es6] $