Commit 973551cd authored by Hirohisa Kawase's avatar Hirohisa Kawase

Change some Markdown to fit other md files' format.

Signed-off-by: 's avatarHirohisa Kawase <hiro@linux-eejv.(none)>
parent 7298c93b
# Contributing to Laravel via Command-Line # Contributing to Laravel via Command-Line
## Contents ## Contents
- [Getting Started](#getting-started)
- [Forking Laravel](#forking-laravel) - [Getting Started](#getting-started)
- [Cloning Laravel](#cloning-laravel) - [Forking Laravel](#forking-laravel)
- [Adding your Fork](#adding-your-fork) - [Cloning Laravel](#cloning-laravel)
- [Creating Branches](#creating-branches) - [Adding your Fork](#adding-your-fork)
- [Committing](#committing) - [Creating Branches](#creating-branches)
- [Submitting a Pull Request](#submitting-a-pull-request) - [Committing](#committing)
- [What's Next?](#whats-next) - [Submitting a Pull Request](#submitting-a-pull-request)
- [What's Next?](#whats-next)
<a name='getting-started'></a>
<a name="getting-started"></a>
## Getting Started ## Getting Started
This tutorial explains the basics of contributing to a project on [GitHub](https://github.com/) via the command-line. The workflow can apply to most projects on GitHub, but in this case, we will be focused on the [Laravel](https://github.com/laravel/laravel) project. This tutorial is applicable to OSX, Linux and Windows. This tutorial explains the basics of contributing to a project on [GitHub](https://github.com/) via the command-line. The workflow can apply to most projects on GitHub, but in this case, we will be focused on the [Laravel](https://github.com/laravel/laravel) project. This tutorial is applicable to OSX, Linux and Windows.
This tutorial assumes you have installed [Git](http://git-scm.com/) and you have created a [GitHub account](https://github.com/signup/free). If you haven't already, look at the [Laravel on GitHub](/docs/contrib/github) documentation in order to familiarize yourself with Laravel's repositories and branches. This tutorial assumes you have installed [Git](http://git-scm.com/) and you have created a [GitHub account](https://github.com/signup/free). If you haven't already, look at the [Laravel on GitHub](/docs/contrib/github) documentation in order to familiarize yourself with Laravel's repositories and branches.
<a name='forking-laravel'></a> <a name="forking-laravel"></a>
## Forking Laravel ## Forking Laravel
Login to GitHub and visit the [Laravel Repository](https://github.com/laravel/laravel). Click on the **Fork** button. This will create your own fork of Laravel in your own GitHub account. Your Laravel fork will be located at **https://github.com/username/laravel** (your GitHub username will be used in place of *username*). Login to GitHub and visit the [Laravel Repository](https://github.com/laravel/laravel). Click on the **Fork** button. This will create your own fork of Laravel in your own GitHub account. Your Laravel fork will be located at **https://github.com/username/laravel** (your GitHub username will be used in place of *username*).
<a name='cloning-laravel'></a> <a name="cloning-laravel"></a>
## Cloning Laravel ## Cloning Laravel
Open up the command-line or terminal and make a new directory where you can make development changes to Laravel: Open up the command-line or terminal and make a new directory where you can make development changes to Laravel:
...@@ -36,7 +37,7 @@ Next, clone the Laravel repository (not your fork you made): ...@@ -36,7 +37,7 @@ Next, clone the Laravel repository (not your fork you made):
> **Note**: The reason you are cloning the original Laravel repository (and not the fork you made) is so you can always pull down the most recent changes from the Laravel repository to your local repository. > **Note**: The reason you are cloning the original Laravel repository (and not the fork you made) is so you can always pull down the most recent changes from the Laravel repository to your local repository.
<a name='adding-your-fork'></a> <a name="adding-your-fork"></a>
## Adding your Fork ## Adding your Fork
Next, it's time to add the fork you made as a **remote repository**: Next, it's time to add the fork you made as a **remote repository**:
...@@ -49,7 +50,7 @@ Remember to replace *username** with your GitHub username. *This is case-sensiti ...@@ -49,7 +50,7 @@ Remember to replace *username** with your GitHub username. *This is case-sensiti
Now you have a pristine clone of the Laravel repository along with your fork as a remote repository. You are ready to begin branching for new features or fixing bugs. Now you have a pristine clone of the Laravel repository along with your fork as a remote repository. You are ready to begin branching for new features or fixing bugs.
<a name='creating-branches'></a> <a name="creating-branches"></a>
## Creating Branches ## Creating Branches
First, make sure you are working in the **develop** branch. If you submit changes to the **master** branch, it is unlikely they will be pulled in anytime in the near future. For more information on this, read the documentation for [Laravel on GitHub](/docs/contrib/github). To switch to the develop branch: First, make sure you are working in the **develop** branch. If you submit changes to the **master** branch, it is unlikely they will be pulled in anytime in the near future. For more information on this, read the documentation for [Laravel on GitHub](/docs/contrib/github). To switch to the develop branch:
...@@ -76,7 +77,7 @@ Or if there is a new feature to add or change to the documentation that you want ...@@ -76,7 +77,7 @@ Or if there is a new feature to add or change to the documentation that you want
Now that you have created your own branch and have switched to it, it's time to make your changes to the code. Add your new feature or fix that bug. Now that you have created your own branch and have switched to it, it's time to make your changes to the code. Add your new feature or fix that bug.
<a name='committing'></a> <a name="committing"></a>
## Committing ## Committing
Now that you have finished coding and testing your changes, it's time to commit them to your local repository. First, add the files that you changed/added: Now that you have finished coding and testing your changes, it's time to commit them to your local repository. First, add the files that you changed/added:
...@@ -87,10 +88,10 @@ Next, commit the changes to the repository: ...@@ -87,10 +88,10 @@ Next, commit the changes to the repository:
# git commit -s -m "I added some more stuff to the Localization documentation." # git commit -s -m "I added some more stuff to the Localization documentation."
- **-s** means that you are signing-off on your commit with your name. This tells the Laravel team know that you personally agree to your code being added to the Laravel core. "- **-s** means that you are signing-off on your commit with your name. This tells the Laravel team know that you personally agree to your code being added to the Laravel core.
- **-m** is the message that goes with your commit. Provide a brief explanation of what you added or changed. "- **-m** is the message that goes with your commit. Provide a brief explanation of what you added or changed.
<a name='pushing-to-your-fork'></a> <a name="pushing-to-your-fork"></a>
## Pushing to your Fork ## Pushing to your Fork
Now that your local repository has your committed changes, it's time to push (or sync) your new branch to your fork that is hosted in GitHub: Now that your local repository has your committed changes, it's time to push (or sync) your new branch to your fork that is hosted in GitHub:
...@@ -99,19 +100,19 @@ Now that your local repository has your committed changes, it's time to push (or ...@@ -99,19 +100,19 @@ Now that your local repository has your committed changes, it's time to push (or
Your branch has been successfully pushed to your fork on GitHub. Your branch has been successfully pushed to your fork on GitHub.
<a name='submitting-a-pull-request'></a> <a name="submitting-a-pull-request"></a>
## Submitting a Pull Request ## Submitting a Pull Request
The final step is to submit a pull request to the Laravel repository. This means that you are requesting that the Laravel team pull and merge your changes to the Laravel core. In your browser, visit your Laravel fork at [https://github.com/username/laravel](https://github.com/username/laravel). Click on **Pull Request**. Next, make sure you choose the proper base and head repositories and branches: The final step is to submit a pull request to the Laravel repository. This means that you are requesting that the Laravel team pull and merge your changes to the Laravel core. In your browser, visit your Laravel fork at [https://github.com/username/laravel](https://github.com/username/laravel). Click on **Pull Request**. Next, make sure you choose the proper base and head repositories and branches:
- **base repo:** laravel/laravel - **base repo:** laravel/laravel
- **base branch:** develop - **base branch:** develop
- **head repo:** username/laravel - **head repo:** username/laravel
- **head branch:** feature/localization-docs - **head branch:** feature/localization-docs
Use the form to write a more detailed description of the changes you made and why you made them. Finally, click **Send pull request**. That's it! The changes you made have been submitted to the Laravel team. Use the form to write a more detailed description of the changes you made and why you made them. Finally, click **Send pull request**. That's it! The changes you made have been submitted to the Laravel team.
<a name='whats-next'></a> <a name="whats-next"></a>
## What's Next? ## What's Next?
Do you have another feature you want to add or another bug you need to fix? First, make sure you always base your new branch off of the develop branch: Do you have another feature you want to add or another bug you need to fix? First, make sure you always base your new branch off of the develop branch:
......
...@@ -6,19 +6,19 @@ ...@@ -6,19 +6,19 @@
- [Repositories](#repositoriess) - [Repositories](#repositoriess)
- [Branches](#branches) - [Branches](#branches)
<a name='the-basics'></a> <a name="the-basics"></a>
## The Basics ## The Basics
Because Laravel's development and source control is done through GitHub, anyone is able to make contributions to it. Anyone can fix bugs, add features or improve the documentation. Because Laravel's development and source control is done through GitHub, anyone is able to make contributions to it. Anyone can fix bugs, add features or improve the documentation.
After submitting proposed changes to the project, the Laravel team will review the changes and make the decision to commit them to Laravel's core. After submitting proposed changes to the project, the Laravel team will review the changes and make the decision to commit them to Laravel's core.
<a name='repositories'></a> <a name="repositories"></a>
## Repositories ## Repositories
Laravel's home on GitHub is at [github.com/laravel](https://github.com/laravel). Laravel has several repositories. For basic contributions, the only repository you need to pay attention to is the **laravel** repository, located at [github.com/laravel/laravel](https://github.com/laravel/laravel). Laravel's home on GitHub is at [github.com/laravel](https://github.com/laravel). Laravel has several repositories. For basic contributions, the only repository you need to pay attention to is the **laravel** repository, located at [github.com/laravel/laravel](https://github.com/laravel/laravel).
<a name='branches'></a> <a name="branches"></a>
## Branches ## Branches
The **laravel** repository has multiple branches, each serving a specific purpose: The **laravel** repository has multiple branches, each serving a specific purpose:
......
# Contributing to Laravel using TortoiseGit # Contributing to Laravel using TortoiseGit
## Contents ## Contents
- [Getting Started](#getting-started)
- [Forking Laravel](#forking-laravel) - [Getting Started](#getting-started)
- [Cloning Laravel](#cloning-laravel) - [Forking Laravel](#forking-laravel)
- [Adding your Fork](#adding-your-fork) - [Cloning Laravel](#cloning-laravel)
- [Creating Branches](#creating-branches) - [Adding your Fork](#adding-your-fork)
- [Committing](#committing) - [Creating Branches](#creating-branches)
- [Submitting a Pull Request](#submitting-a-pull-request) - [Committing](#committing)
- [What's Next?](#whats-next) - [Submitting a Pull Request](#submitting-a-pull-request)
- [What's Next?](#whats-next)
<a name='getting-started'></a>
<a name="getting-started"></a>
## Getting Started ## Getting Started
This tutorial explains the basics of contributing to a project on [GitHub](https://github.com/) using [TortoiseGit](http://code.google.com/p/tortoisegit/) for Windows. The workflow can apply to most projects on GitHub, but in this case, we will be focused on the [Laravel](https://github.com/laravel/laravel) project. This tutorial explains the basics of contributing to a project on [GitHub](https://github.com/) using [TortoiseGit](http://code.google.com/p/tortoisegit/) for Windows. The workflow can apply to most projects on GitHub, but in this case, we will be focused on the [Laravel](https://github.com/laravel/laravel) project.
This tutorial assumes you have installed TortoiseGit for Windows and you have created a GitHub account. If you haven't already, look at the [Laravel on GitHub](/docs/contrib/github) documentation in order to familiarize yourself with Laravel's repositories and branches. This tutorial assumes you have installed TortoiseGit for Windows and you have created a GitHub account. If you haven't already, look at the [Laravel on GitHub](/docs/contrib/github) documentation in order to familiarize yourself with Laravel's repositories and branches.
<a name='forking-laravel'></a> <a name="forking-laravel"></a>
## Forking Laravel ## Forking Laravel
Login to GitHub and visit the [Laravel Repository](https://github.com/laravel/laravel). Click on the **Fork** button. This will create your own fork of Laravel in your own GitHub account. Your Laravel fork will be located at **https://github.com/username/laravel** (your GitHub username will be used in place of *username*). Login to GitHub and visit the [Laravel Repository](https://github.com/laravel/laravel). Click on the **Fork** button. This will create your own fork of Laravel in your own GitHub account. Your Laravel fork will be located at **https://github.com/username/laravel** (your GitHub username will be used in place of *username*).
<a name='cloning-laravel'></a> <a name="cloning-laravel"></a>
## Cloning Laravel ## Cloning Laravel
Open up Windows Explorer and create a new directory where you can make development changes to Laravel. Open up Windows Explorer and create a new directory where you can make development changes to Laravel.
- Right-click the Laravel directory to bring up the context menu. Click on **Git Clone...** - Right-click the Laravel directory to bring up the context menu. Click on **Git Clone...**
- Git clone - Git clone
- **Url:** https://github.com/laravel/laravel.git - **Url:** https://github.com/laravel/laravel.git
- **Directory:** the directory that you just created in the previous step - **Directory:** the directory that you just created in the previous step
- Click **OK** - Click **OK**
> **Note**: The reason you are cloning the original Laravel repository (and not the fork you made) is so you can always pull down the most recent changes from the Laravel repository to your local repository. > **Note**: The reason you are cloning the original Laravel repository (and not the fork you made) is so you can always pull down the most recent changes from the Laravel repository to your local repository.
<a name='adding-your-fork'></a> <a name="adding-your-fork"></a>
## Adding your Fork ## Adding your Fork
After the cloning process is complete, it's time to add the fork you made as a **remote repository**. After the cloning process is complete, it's time to add the fork you made as a **remote repository**.
- Right-click the Laravel directory and goto **TortoiseGit > Settings** - Right-click the Laravel directory and goto **TortoiseGit > Settings**
- Goto the **Git/Remote** section. Add a new remote: - Goto the **Git/Remote** section. Add a new remote:
- **Remote**: fork - **Remote**: fork
- **URL**: https://github.com/username/laravel.git - **URL**: https://github.com/username/laravel.git
- Click **Add New/Save** - Click **Add New/Save**
...@@ -49,12 +50,12 @@ After the cloning process is complete, it's time to add the fork you made as a * ...@@ -49,12 +50,12 @@ After the cloning process is complete, it's time to add the fork you made as a *
Remember to replace *username* with your GitHub username. *This is case-sensitive*. Remember to replace *username* with your GitHub username. *This is case-sensitive*.
<a name='creating-branches'></a> <a name="creating-branches"></a>
## Creating Branches ## Creating Branches
Now you are ready to create a new branch for your new feature or bug-fix. When you create a new branch, use a self-descriptive naming convention. For example, if you are going to fix a bug in Eloquent, name your branch *bug/eloquent*. Or if you were going to make changes to the localization documentation, name your branch *feature/localization-docs*. A good naming convention will encourage organization and help others understand the purpose of your branch. Now you are ready to create a new branch for your new feature or bug-fix. When you create a new branch, use a self-descriptive naming convention. For example, if you are going to fix a bug in Eloquent, name your branch *bug/eloquent*. Or if you were going to make changes to the localization documentation, name your branch *feature/localization-docs*. A good naming convention will encourage organization and help others understand the purpose of your branch.
- Right-click the Laravel directory and goto **TortoiseGit > Create Branch** - Right-click the Laravel directory and goto **TortoiseGit > Create Branch**
- **Branch:** feature/localization-docs - **Branch:** feature/localization-docs
- **Base On Branch:** remotes/origin/develop - **Base On Branch:** remotes/origin/develop
- **Check** *Track* - **Check** *Track*
...@@ -67,19 +68,19 @@ This will create your new *feature/localization-docs* branch and switch you to i ...@@ -67,19 +68,19 @@ This will create your new *feature/localization-docs* branch and switch you to i
Now that you have created your own branch and have switched to it, it's time to make your changes to the code. Add your new feature or fix that bug. Now that you have created your own branch and have switched to it, it's time to make your changes to the code. Add your new feature or fix that bug.
<a name='committing'></a> <a name="committing"></a>
##Committing ##Committing
Now that you have finished coding and testing your changes, it's time to commit them to your local repository: Now that you have finished coding and testing your changes, it's time to commit them to your local repository:
- Right-click the Laravel directory and goto **Git Commit -> "feature/localization-docs"...** - Right-click the Laravel directory and goto **Git Commit -> "feature/localization-docs"...**
- Commit - Commit
- **Message:** Provide a brief explaination of what you added or changed - **Message:** Provide a brief explaination of what you added or changed
- Click **Sign** - This tells the Laravel team know that you personally agree to your code being added to the Laravel core - Click **Sign** - This tells the Laravel team know that you personally agree to your code being added to the Laravel core
- **Changes made:** Check all changed/added files - **Changes made:** Check all changed/added files
- Click **OK** - Click **OK**
<a name='pushing-to-your-fork'></a> <a name="pushing-to-your-fork"></a>
## Pushing to your Fork ## Pushing to your Fork
Now that your local repository has your committed changes, it's time to push (or sync) your new branch to your fork that is hosted in GitHub: Now that your local repository has your committed changes, it's time to push (or sync) your new branch to your fork that is hosted in GitHub:
...@@ -95,19 +96,19 @@ Now that your local repository has your committed changes, it's time to push (or ...@@ -95,19 +96,19 @@ Now that your local repository has your committed changes, it's time to push (or
Your branch has been successfully pushed to your fork on GitHub. Your branch has been successfully pushed to your fork on GitHub.
<a name='submitting-a-pull-request'></a> <a name="submitting-a-pull-request"></a>
## Submitting a Pull Request ## Submitting a Pull Request
The final step is to submit a pull request to the Laravel repository. This means that you are requesting that the Laravel team pull and merge your changes to the Laravel core. In your browser, visit your Laravel fork at [https://github.com/username/laravel](https://github.com/username/laravel). Click on **Pull Request**. Next, make sure you choose the proper base and head repositories and branches: The final step is to submit a pull request to the Laravel repository. This means that you are requesting that the Laravel team pull and merge your changes to the Laravel core. In your browser, visit your Laravel fork at [https://github.com/username/laravel](https://github.com/username/laravel). Click on **Pull Request**. Next, make sure you choose the proper base and head repositories and branches:
- **base repo:** laravel/laravel - **base repo:** laravel/laravel
- **base branch:** develop - **base branch:** develop
- **head repo:** username/laravel - **head repo:** username/laravel
- **head branch:** feature/localization-docs - **head branch:** feature/localization-docs
Use the form to write a more detailed description of the changes you made and why you made them. Finally, click **Send pull request**. That's it! The changes you made have been submitted to the Laravel team. Use the form to write a more detailed description of the changes you made and why you made them. Finally, click **Send pull request**. That's it! The changes you made have been submitted to the Laravel team.
<a name='whats-next'></a> <a name="whats-next"></a>
## What's Next? ## What's Next?
Do you have another feature you want to add or another bug you need to fix? Just follow the same instructions as before in the [Creating Branches](#creating-branches) section. Just remember to always create a new branch for every new feature/fix and don't forget to always base your new branches off of the *remotes/origin/develop* branch. Do you have another feature you want to add or another bug you need to fix? Just follow the same instructions as before in the [Creating Branches](#creating-branches) section. Just remember to always create a new branch for every new feature/fix and don't forget to always base your new branches off of the *remotes/origin/develop* branch.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment