【问题标题】:commit on Github a scss file在 Github 上提交一个 scss 文件
【发布时间】:2016-02-11 10:45:01
【问题描述】:

我正在构建一个包含 Jekyll 和 GitHub 页面的网站。 我包含了一个文件夹scss,其中包含.scss files。当我尝试在 Github 上提交这些更改时,由于出现错误,我无法提交。

名为contact.md 的页面是我使用这些文件的标记。

错误如下所示:

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    css/font-awesome/scss/

error: insufficient permission for adding an object to repository database .git/objects
error: pages/contact.md: failed to insert into database
error: unable to index file pages/contact.md
fatal: updating files failed

有什么帮助吗?

【问题讨论】:

    标签: git file-permissions github-pages


    【解决方案1】:

    使用chown -R `whoami` .git 更改所有者(以获得许可)

    【讨论】:

    • 这个命令的结果是什么?感谢您的回答!
    • 您没有 .git 子树的权限(因此您无法管理版本化的源代码) chown 允许更改文件或树的所有权。 whoami 允许指定当前用户
    猜你喜欢
    • 1970-01-01
    • 2016-12-30
    • 2011-12-10
    • 1970-01-01
    • 2020-08-18
    • 2016-12-07
    • 2019-10-27
    • 2019-09-26
    • 1970-01-01
    相关资源
    最近更新 更多