Git permission error when contributing to dash

Hi all!
I identified a bug in dash and want to contribute to solving it. I cloned the dash repo onto my computer, created a new branch, and solved the bug on that branch. However, I’m having trouble pushing that branch to the remote repository so that I can create a PR. I am getting the following error:

Has anyone experienced something similar?
Thank you for your help!

Hi @amymorrill
I’ve seen something similar if I didn’t fork the dash repo first, or if I forgot to make a new branch.

The contributing guide in dash-bootstrap-components library is good, and it includes a few steps that the dash contributing guide skips. I’ve modified it for dash:

Adhering to the following process is the best way to get your work
included in the project:

  1. Fork the project, clone your fork,
    and configure the remotes:

    # Clone your fork of the repo into the current directory
    git clone<your-username>/dash.git
    # Navigate to the newly cloned directory
    cd dash
    # Assign the original repo to a remote called "upstream"
    git remote add upstream
  2. If you cloned a while ago, get the latest changes from upstream:

    git checkout dev
    git pull upstream dev
  3. Create a new topic branch (off the main project development branch) to
    contain your feature, change, or fix:

    git checkout -b <topic-branch-name>

Follow the rest of the “getting started” section in in the dash starting with making a virtual environment.

After you build locally, git status will show these modified files:

modified:   components/dash-core-components/package-lock.json
modified:   components/dash-html-components/package-lock.json
modified:   components/dash-table/package-lock.json

Do not commit these package-lock.json changes in your PR

  1. Commit your changes in logical chunks. Please adhere to these git commit
    message guidelines

    or your code is unlikely be merged into the main project. Use Git’s
    interactive rebase
    feature to tidy up your commits before making them public.

  2. Locally merge (or rebase) the upstream development branch into your topic branch:

    git pull [--rebase] upstream dev
  3. Push your topic branch up to your fork:

    git push origin <topic-branch-name>
  4. Open a Pull Request
    with a clear title and description against the dev branch.

Hi @AnnMarieW! Thank you so much for your detailed response – super helpful:) I think that my problem is that I forgot to fork the dash repo first.

1 Like