Difference between revisions of "Git fork"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(External links)
 
Line 28: Line 28:
 
* [http://stackoverflow.com/questions/6286571/git-fork-is-git-clone Git fork is git clone?] @ Stack Overflow
 
* [http://stackoverflow.com/questions/6286571/git-fork-is-git-clone Git fork is git clone?] @ Stack Overflow
 
* [http://bryanpendleton.blogspot.com/2014/07/git-clone-vs-fork.html git clone vs fork]
 
* [http://bryanpendleton.blogspot.com/2014/07/git-clone-vs-fork.html git clone vs fork]
 +
 +
[[Category:Git (software)]]
 +
[[Category:Revision control]]
 +
[[Category:Software]]

Latest revision as of 18:24, 24 April 2016

In Git, a fork is a copy of the Git repository associated with your ID.

Description

Any changes made to the original repository will be reflected back to your forked repositories.

When you are ready to merge your changes into the original repository, create a Git pull request.

If your pull request is approved by the administrator of the original repository, then your changes will be committed/merged with the existing original code-base. Until then, your changes will be reflected only in the copy you forked.

Fork-and-pull model

The Fork & Pull Model lets anyone fork an existing repository and push changes to their personal fork without requiring access be granted to the source repository. The changes must then be pulled into the source repository by the project maintainer.

Note that after forking you can clone your repository (the one under your name) locally on your machine. Make changes in it and push it to your forked repository. However, to reflect your changes in the original repository your pull request must be approved.

Fork versus clone

See Git clone.

See also

External links