Skip to main content
deleted 6 characters in body
Source Link

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "first" made it harder to understand what user the URL is about.

The other change, changing the repo name from "firstguy" to "firstrepo" also made the answer harder to understand. Which is the first repo? Chronologically it was "origin", but itThe one which is not thatfirst chronologically or the repo we want thereone cloned from first?. "firstguy" or "firstperson" is a much easier to understand name for a repo. Much as "Jhon's dog" is easier to understand than "First dog".

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "first" made it harder to understand what user the URL is about.

The other change, changing the repo name from "firstguy" to "firstrepo" also made the answer harder to understand. Which is the first repo? Chronologically it was "origin", but it is not that the repo we want there. "firstguy" or "firstperson" is a much easier to understand name for a repo. Much as "Jhon's dog" is easier to understand than "First dog".

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "first" made it harder to understand what user the URL is about.

The other change, changing the repo name from "firstguy" to "firstrepo" also made the answer harder to understand. Which is the first repo? The one which is first chronologically or the one cloned from first?. "firstguy" or "firstperson" is a much easier to understand name for a repo. Much as "Jhon's dog" is easier to understand than "First dog".

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?

added 306 characters in body
Source Link

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "firstrepo""first" made it harder to understand what user the URL is about.

The other change, changing the repo name from "firstguy" to "firstrepo" also made the answer harder to understand from a technical point of view by mixing up. Which is the user withfirst repo? Chronologically it was "origin", but it is not that the repo we want there. "firstguy" or "firstperson" is a much easier to understand name for a repo. Much as "Jhon's dog" is easier to understand than "First dog".

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "firstrepo" made the answer harder to understand from a technical point of view by mixing up the user with the repo.

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "first" made it harder to understand what user the URL is about.

The other change, changing the repo name from "firstguy" to "firstrepo" also made the answer harder to understand. Which is the first repo? Chronologically it was "origin", but it is not that the repo we want there. "firstguy" or "firstperson" is a much easier to understand name for a repo. Much as "Jhon's dog" is easier to understand than "First dog".

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?

Became Hot Meta Post
Source Link

Should I edit answer for : Merging between forks in GitHub?

I'd like to make an edit to improve this answer.

The edited answer would look like this:

You probably have a "remote" for each repository. You need to pull from the one remote and push to the other.

If you originally cloned from your fork, that remote will be called "origin". If you haven't added it already, you'll need to add the first person's repository as another remote:

git remote add firstperson git://github.com/firstperson/repo.git

After that's all set up, you should indeed be able to

git pull firstperson master
git push origin

Remember, git pull is nothing more than a macro that does git fetch and git merge, in that order. You just need to fetch the list of commits from the first person's repository and then merge their branch into your tree. Merging should do the right thing with your commits on both branches.

GitHub, in all its perpetual awesomeness, gives you a shortcut, of course. There's a "fast-forward" button on your fork of the repository that you can use to catch your fork up if you're entirely merged in to the other side.

The edit reason would be:

github's URLs follow a structure of https://github.com/username/repository.git . The original "firstguy" was more easily identifiable as an username. Changing "firstguy" -> "firstrepo" made the answer harder to understand from a technical point of view by mixing up the user with the repo.

But since there was some controversy about this and the edit was approved by a staff member I feel uncomfortable with using the 2k privilege "edit questions and answers".

Should I go ahead and perform the edit?