Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4081520
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:04:18+00:00 2026-05-20T18:04:18+00:00

If I want to submodule a Git repository: https://github.com/shadowhand/paypal …that has a config file:

  • 0

If I want to submodule a Git repository:

https://github.com/shadowhand/paypal

…that has a config file:

https://github.com/shadowhand/paypal/blob/master/config/paypal.php

…how do I contribute to the project without committing my version of the config file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:04:18+00:00Added an answer on May 20, 2026 at 6:04 pm

    When you commit, don’t add that file:

    git add classes/paypal.php
    ...
    # don't add config/paypal.php
    git commit
    

    Before committing, check with git status that you haven’t staged any modifications to the config – if you accidentally have, use git reset HEAD config/paypal.php to unstage them.

    (And for what it’s worth, this doesn’t really have anything to do with the fact that you’re using this repository as a submodule.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use some libs in my application, like https://github.com/Panmind/erlang-ruby-marshal . That repo
Suppose we have the following repository structure on github: company:project.git \- company:submodule.git A developer
I have a 'super-repository' that has a submodule that is essentially a fork of
I have a git repo and I want to add a submodule to it.
I added some Haml templates to my Rails 3 project with git clone git://github.com/psynix/rails3_haml_scaffold_generator.git
I am trying out basic submodule functionality in Git Extensions. I have a repository
I have a git repository consist of several git submodules. If I want to
I want to keep my Vim plugins up-to-date with git by using github repos
I've got a git submodule in my project that consists of a set of
How do you link a single file from another git repository to your own

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.