签出分支时拒绝Git权限

时间:2016-07-24 20:34:26

标签: git

尝试从我的events-feature分支结帐到主分支时,我遇到了一个特定文件夹的git问题。以下是命令行中发生的情况。在命令行输入期间没有更改代码。在我的第二个git状态结束时,文件夹lib / partials已被删除。

~/Desktop/climbingTheWeb/climbers-hub (events-feature)
$ git status
On branch events-feature
nothing to commit, working directory clean

~/Desktop/climbingTheWeb/climbers-hub (events-feature)
$ git checkout master
fatal: cannot create directory at 'lib/partials': Permission denied

~/Desktop/climbingTheWeb/climbers-hub (events-feature)
$ git status
lib/partials/createEvent.jade: Permission denied
lib/partials/event.jade: Permission denied
lib/partials/login.jade: Permission denied
lib/partials/navbar.jade: Permission denied
lib/partials/register.jade: Permission denied
lib/partials/search.jade: Permission denied
lib/partials/welcome.jade: Permission denied
On branch events-feature
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   gulpfile.js
    modified:   lib/js/config.js
    deleted:    lib/js/createEventController.js
    modified:   lib/js/eventController.js
    deleted:    models/event.js
    deleted:    public/index.html
    deleted:    public/partials/createEvent.html
    deleted:    public/partials/createEventForm.html

    no changes added to commit (use "git add" and/or "git commit -a")

0 个答案:

没有答案