1
0
mirror of synced 2025-12-21 19:06:49 -05:00

Merge branch 'main' into flytewizard-keyboard-shortcut-discussions

This commit is contained in:
Janice
2021-05-12 16:28:18 -07:00
committed by GitHub
6 changed files with 12 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ versions:
github-ae: '*'
---
### About subtree merges
Typically, a subtree merge is used to contain a repository within a repository. The "subrepository" is stored in a folder of the main repository.
The best way to explain subtree merges is to show by example. We will:

View File

@@ -15,6 +15,8 @@ topics:
- Accounts
---
### Create a repository
{% if currentVersion == "free-pro-team@latest" %}
You can store a variety of projects in {% data variables.product.product_name %} repositories, including open source projects. With [open source projects](http://opensource.org/about), you can share code to make better, more reliable software.

View File

@@ -16,6 +16,8 @@ topics:
- Accounts
---
### About forks
Most commonly, forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea.
#### Propose changes to someone else's project

View File

@@ -10,6 +10,8 @@ versions:
enterprise-server: '*'
github-ae: '*'
---
### Options for getting changes
These commands are very useful when interacting with [a remote repository](/github/getting-started-with-github/about-remote-repositories). `clone` and `fetch` download remote code from a repository's remote URL to your local computer, `merge` is used to merge different people's work together with yours, and `pull` is a combination of `fetch` and `merge`.
### Cloning a repository

View File

@@ -22,6 +22,8 @@ topics:
- Accounts
---
### Using Git
To use Git on the command line, you'll need to download, install, and configure Git on your computer. {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.19" or currentVersion == "github-ae@latest" %} You can also install {% data variables.product.prodname_cli %} to use {% data variables.product.product_name %} from the command line. For more information on {% data variables.product.prodname_cli %}, see the [{% data variables.product.prodname_cli %}](https://cli.github.com/manual/) documentation.{% endif %}
If you want to work with Git locally, but don't want to use the command line, you can instead download and install the [{% data variables.product.prodname_desktop %}]({% data variables.product.desktop_link %}) client. For more information, see "[Installing and configuring {% data variables.product.prodname_desktop %}](/desktop/installing-and-configuring-github-desktop/)."

View File

@@ -11,6 +11,8 @@ versions:
github-ae: '*'
---
### Using Git rebase
In this example, we will cover all of the `git rebase` commands available, except for `exec`.
We'll start our rebase by entering `git rebase --interactive HEAD~7` on the terminal. Our favorite text editor will display the following lines: