Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
4.1k views
in Q2A Core by
edited by

Cannot push to q2a github repo? Didn't I or someone else ran into this problem before?

1. Installed Github for Windows.

2. Went to the q2a repo: https://github.com/q2a/question2answer/ and clicked on "Clone in Desktop"

3. Github for Windows opens, clones the repo.

4. Changed the local files, now want to push.

5. In Github for Windows I see my changes and click on Sync (and I tried pull request into master and into dev).

6. Always get: "Sync failed to push local changes. It seems you do not have permission to push your changes to this repository."

?

by
I've actually added a small tutorial in your other question: http://question2answer.org/qa/41301/help-github-after-clone-done-changes-committing-pull-request?show=41335#a41335

It should work on any operative system.

1 Answer

+1 vote
by

Tutorial for Github for Windows

Steps to clone a repo (fork), edit and push it back (pull request):

1. Go to https://github.com/q2a/question2answer/ and click the "Fork" button on top right (I had the "master" branch chosen)

2. The fork is created in your repo.

3. Click on "clone in desktop", so it opens in Github for windows. If it does not work: A - open Github-for-win, B - Click the plus sign, then Clone. Search for question2answer, enter. Choose local folder to store.

4. Right mouseclick on "question2answer" in the left sidepanel, open in Explorer.

5. Modify the files with your text editor.

6. Go to github for win again, changes are shown on top. Down below add information for "Summary" and "Description". Then click "Commit to master". (It commits your local files to your fork online.) Then click on "Sync" (top right).

7. Go to your online repo, and click the green button on the very left (for pull request).

8. You see a page with your changes highlighted. Then click "Create Pull Request"

Done.

by
Good post. You should also make sure you're sending the correct commits when making a PR. For example if you made some changes that are specific to your own site, don't include those in the PR.

There's also a page on Github worth reading: https://help.github.com/articles/using-pull-requests/
by
Here is the short video tutorial that shows all single steps:
https://youtu.be/XdhuWDdu-rk

Enjoy.
...