Skip to content

Commit d0fbecc

Browse files
committed
Link to upstream in fork section
1 parent 18c7d0d commit d0fbecc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/creating-repositories.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ start a working area (see also: git help tutorial)
3838
It is important to remember that when **cloning** or **forking** an existing repository, you will inherit the _entire history_ of all previous commits. This is a feature: Newcomers to a project are not restricted to only the history after their arrival.
3939

4040

41-
## Clone
41+
### Clone
4242

4343
`git clone` is the simplest way to begin working with a repository you want connected to GitHub. The `clone` operation clones an entire remote repository to your local workstation.
4444

@@ -85,7 +85,7 @@ Assuming you are authenticating to GitHub using SSH keys, here are the steps to
8585
7. Note that if you create a new, empty repository within GitHub, it is helpful to tick the box to include a `README.md` file by default. This ensures that a default branch (named `main`) will be created for you.
8686
8787
88-
## Init
88+
### Init
8989
9090
Git repositories can also be created locally and connected with GitHub after creation. (In fact, there are some cases where a local git repository is used for source control but never connected to an external hub.)
9191
@@ -123,6 +123,8 @@ A fork is a copy of someone else’s repository. This is usually because you do
123123
124124
When you fork a repository, a complete copy is made in your own account (or Organization) in GitHub. This gives you complete control to clone and work with the code freely. You own the forked copy, so you can make additions, new functionality, and commit+push to your own fork.
125125
126+
A forked repository also contains the linkage to the original repository from which it was forked. This is another remote, often called "[**upstream**](../forks-branches/#upstream)."
127+
126128
{: .success :}
127129
[**Learn more about Forks**](../forks-branches/)
128130

0 commit comments

Comments
 (0)