# Contribution via Git

**URL:** <https://forum.mautic.org/t/contribution-via-git/8949>\
**Category:** General Discussion\
**Created:** [July 14, 2017, 6:18am UTC](https://forum.mautic.org/t/contribution-via-git/8949 "2017-07-14T06:18:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [July 14, 2017, 6:18am UTC](https://forum.mautic.org/t/contribution-via-git/8949/1 "2017-07-14T06:18:36Z")

</div>

Hi Don,  
  
  
  
I would like to contribute some code and documentation for Mautic. Unfortunately I am not able to push my local branches back to Git:

Code:

Authentication failed. You may not have permission to access the repository. Open preferences and verify that you're signed in with an account that has permission to access this repository.

  
I thought the workflow is:  
1. Pull remote repository from Github to the local computer  
2. Create local branch  
3. Make modifications  
4. Commit locally  
5. Push changes back to Github \<-- does not work  
6. Create pull request in Github  
  
This is kind of strange because I can push to other repositories. Any idea? Do the admins have to authorize me first? Am I missing something?  
  
Best,  
Peter

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [July 14, 2017, 6:18am UTC](https://forum.mautic.org/t/contribution-via-git/8949/2 "2017-07-14T06:18:36Z")

</div>

Hi Don,

I would like to contribute some code and documentation for Mautic. Unfortunately I am not able to push my local branches back to Git:

```auto
Authentication failed. You may not have permission to access the repository. Open preferences and verify that you're signed in with an account that has permission to access this repository.
```

I thought the workflow is:

1. Pull remote repository from Github to the local computer
2. Create local branch
3. Make modifications
4. Commit locally
5. Push changes back to Github \<-- does not work
6. Create pull request in Github

This is kind of strange because I can push to other repositories. Any idea? Do the admins have to authorize me first? Am I missing something?

Best,  
Peter

---

<div class="post-metadata">

**Author:** ![DonGilbert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dongilbert/32/1735_2.png) [@DonGilbert](https://forum.mautic.org/u/DonGilbert)\
**Post date:** [July 14, 2017, 3:15pm UTC](https://forum.mautic.org/t/contribution-via-git/8949/3 "2017-07-14T15:15:00Z")

</div>

You’ll need to create a fork of Mautic to your github user, then push the changes to that fork in order to submit a pull request. Only a few people have commit access to the Mautic repository, including branches.

To do that, go to `https://github.com/mautic/mautic` and click “Fork” in the top right. Select your user to create the repo there. Then, in the terminal where you created your local branch, type `git remote add mine git@github.com:YOUR_USER/mautic.git`. From there you can push your changes to your fork via `git push mine YOUR_BRANCH_NAME`. Once you do that, go back to `https://github.com/mautic/mautic`, and you’ll see a yellow alert box that says “Create a pull request from your recently pushed branch?” or something along those lines.

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [July 15, 2017, 6:27am UTC](https://forum.mautic.org/t/contribution-via-git/8949/4 "2017-07-15T06:27:56Z")

</div>

OK. I wasn’t aware that I first have to fork the repo (I cloned it directly from Mautic repo). Thanks!
