Push git sumbodule to own remote repo

I’m new to git, so I need your help.

I have project, and I’m added some third-party libraries to it from GitHub using git submodule add. I have modified some libraries depending on my needs. So how can I push that libraries with all the changes to my remote repo? Or what can I do to have all that libraries in my remote repo? thanks.

  • Every directory shows up as modified using the Eclipse git plugin
  • Change the name of a git repository on the local machine
  • pushing multiple unrelated commits to remote git repo
  • Git SSH setup Permission denied (publickey)
  • Cannot pull or clone from Bonobo Git Server
  • Git: Prevent extern user's from accessing specific branches
  • Git vs SVN: can I have single change in history for several branches?
  • Eclipse git saying Connection Refused
  • git commits were lost - what have I done wrong?
  • Reimporting an entire Git repository
  • Cloning repositories from github fails
  • what's the Git equivalent of TFS commands shelve/unshelve? cherry-pick?
  • 2 Solutions collect form web for “Push git sumbodule to own remote repo”

    You should create your own fork of the library (and maybe send a pull request), then change the submodule to reference the fork.

    Submodules are nothing more nor less than nested repositories; all the submodule command does is help schlep them around. There’s nothing special about a submodule repository, a submodule is just an ordinary repo whose contents are interesting to a project contained in some specific other repo. So just push your submodule repos to github the same as you’d do for any other.

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