Unable to add changes to my repository

I’ve modified a puppet module I previously cloned from it’s own repository on github. The only thing I changed is a configuration file template, no big deal (pg_hba.conf.erb for the pgsql-aware).

The problem is that I’m not able to add the modified module to my repository.

  • Pushing large commit to GitHub results in a fatal write error: Bad file descriptor
  • git website update strategy - how to sync dev and live repositories?
  • Deleting a remote branch with Egit
  • Best way to change android repository versions efficiently once downloaded using repo/git
  • netbean git plugin issue on pulling/reverting and commiting
  • How to remove/delete a large file from commit history in Git repository?
  • [ngw@chienandalusia:~/outline.li]$ git status                     (08-13 15:18)
    # On branch develop
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #   (commit or discard the untracked or modified content in submodules)
    #
    #   modified:   puppet/modules/postgresql (modified content)
    #
    no changes added to commit (use "git add" and/or "git commit -a")
    [ngw@chienandalusia:~/outline.li]$ git add puppet                 (08-13 15:19)
    [ngw@chienandalusia:~/outline.li]$ git add puppet/modules/postgresql
    [ngw@chienandalusia:~/outline.li]$ git status                     (08-13 15:20)
    # On branch develop
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #   (commit or discard the untracked or modified content in submodules)
    #
    #   modified:   puppet/modules/postgresql (modified content)
    #
    no changes added to commit (use "git add" and/or "git commit -a")
    

    I currently don’t see any reason for this behaviour and not being a git expert I’m not entirely sure how to debug this. FWIW there’s nothing in my .gitignore that prevents the changes to be staged for commit, and git status apparently agrees with me. Even using the -f flag didn’t help.

    Does someone have any clue?

  • setting up a git post-receive hook
  • git orphan branches with same commits
  • How to deploy from git repo without server having access to repo?
  • TeamCity - keeping Git submodule up to date?
  • Why does ls work in GitShell, but ls -a or ls -la not work?
  • Picking a code review tool
  • One Solution collect form web for “Unable to add changes to my repository”

    puppet/modules/postgresql is a git submodule, changes to it do not affect git project. To make changes to a submodule you should cd to submodule directory and add/commit work, pull, push, go back to root and commit/push again.

    Keep in mind that pushing submodule will push to a different remote then the root project.

    See https://stackoverflow.com/a/5542964/2578489.

    Git Baby is a git and github fan, let's start git clone.