Git分支提交,我做错了什么

  • 本文关键字:错了 分支 提交 Git git
  • 更新时间 :
  • 英文 :


我想对一个公共的git项目做一个小小的改变。

所以我做了:

git clone BLAH
git checkout -b NEWBRANCH

对现有文件进行更改,并执行

git commit -a -m "did stuff"

给出

fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

我漏了一步还是什么?

git clone BLAH在BLAH目录下创建了一个git repo。只要输入cd BLAH

最新更新