Jump to content

GitHub beginner


Manfred62
 Share

Recommended Posts

just need an advice from the GitHub pros... Kongondo told me, to submit changes in both forum and GitHub.

I already have created an account on GitHub and forked the german language pack from Matthias (yellowled). Also I did my first updates and pull requests there. Now I found some more points to check in the PW dev repo (regarding translations in 2.3.4/2.4).

Do I have to fork the full PW dev repo, do the changes and then commit them? Or can I do this only with the files which need the changes?

thanks Manfred

Link to comment
Share on other sites

I am no Github expert, but the only way I have ever been able to submit a pull request is to fork the full repo.

This seems to confirm this:

http://stackoverflow.com/questions/14821583/pull-request-without-forking

However maybe I am not exactly understanding what you mean by "Or can I do this only with the files which need the changes?"

Link to comment
Share on other sites

just need an advice from the GitHub pros... Kongondo told me, to submit changes in both forum and GitHub.

I already have created an account on GitHub and forked the german language pack from Matthias (yellowled). Also I did my first updates and pull requests there. Now I found some more points to check in the PW dev repo (regarding translations in 2.3.4/2.4).

Do I have to fork the full PW dev repo, do the changes and then commit them? Or can I do this only with the files which need the changes?

thanks Manfred

It is not possible to just fork part of a repo (in this case PW) - not that I know of. You lose nothing btw by forking "the full PW dev repo" as Github offers unlimited repos :). So, yes. Please, fork the dev branch, make your changes and submit a pull request :) for those changed files. See this link for step-by-step instructions:

https://help.github.com/articles/creating-a-pull-request

Edit:

OK, there seems to be a way to partially fork a repo though I am not sure it is worth the effort. There is something called "sparse checkout" in Git. There's tonnes of topics on SO and other places about this. I would just fork the whole branch. One advantage with that is that it allows you to easily test your changes in the whole system to see if they break anything... :)

Edited by kongondo
  • Like 2
Link to comment
Share on other sites

Even for very simple changes, like correcting typos on the readme, youhave to fork the repo. This can even be done just by editing the file directly on the original github repo (I mean , on the website)

This is what you will see:

You are editing a file in a project you do not have write access to. We are forking this project for you (if one does not yet exist) to write your proposed changes to. Submitting a change to this file will write it to a new branch in your fork so you can send a pull request.
 
 
very handy :)
  • Like 1
Link to comment
Share on other sites

  This can even be done just by editing the file directly on the original github repo (I mean , on the website)

That's the way I have done it. Now I am searching if / how it is possible to create another parallel branch (separate).

On the Github website the (auto) forked repo has a "branch-1". I would like to have a "branch-2" too:

forked-repo-|
            |
            |---- branch-1 (with changes)
            |
            |---- branch-2 (with other changes)

Did someone know how to do it (directly on the GitHub website if possible)?

Link to comment
Share on other sites

That's the way I have done it. Now I am searching if / how it is possible to create another parallel branch (separate).

On the Github website the (auto) forked repo has a "branch-1". I would like to have a "branch-2" too:

forked-repo-|
            |
            |---- branch-1 (with changes)
            |
            |---- branch-2 (with other changes)

Did someone know how to do it (directly on the GitHub website if possible)?

In your repository's branch selector, just start typing a new branch name. We'll give you the option to create a new branch:

Create and delete brancheshttps://github.com/blog/1377-create-and-delete-branches  O0

E.g. "master" and "dev" are the 2 branches of PW: https://github.com/ryancramerdesign/ProcessWire/branches

Stuff others may find useful

Branches

Commit branch and tag labelshttps://help.github.com/articles/commit-branch-and-tag-labels

Setting the default branchhttps://help.github.com/articles/setting-the-default-branch

Other FYIs:

How do I work with branches in GitHub for Windows? https://help.github.com/articles/how-do-i-work-with-branches-in-github-for-windows

Fork A Repo: https://help.github.com/articles/fork-a-repo

Creating Releaseshttps://help.github.com/articles/creating-releases

What are the differences between SVN and Git?https://help.github.com/articles/what-are-the-differences-between-svn-and-git

Edited by kongondo
  • Like 1
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...