Skip to content

Commit

Permalink
Merge pull request #1 from rmros/rmros
Browse files Browse the repository at this point in the history
Add rmros to Contributors list
  • Loading branch information
rmros authored May 24, 2021
2 parents b337334 + 0a95395 commit 6fc5523
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 1 deletion.
79 changes: 79 additions & 0 deletions README.fa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<p dir="rtl">اگه روی دستگاهت گیت نداری.
<a href="https://help.github.com/articles/set-up-git/"> نصبش کن</a>.</p>
<h2 dir="rtl">
<a id="user-content-این-ریپوزیتوری-رو-فورک-کن" class="anchor" href="#%D8%A7%DB%8C%D9%86-%D8%B1%DB%8C%D9%BE%D9%88%D8%B2%DB%8C%D8%AA%D9%88%D8%B1%DB%8C-%D8%B1%D9%88-%D9%81%D9%88%D8%B1%DA%A9-%DA%A9%D9%86" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>این ریپوزیتوری رو فورک کن</h2>
<p dir="rtl">این ریپوزیتوری رو از طریق کلیک کردن روی دکمه فورک بالای این صفحه فورک کن
این کار یک کپی از ریپوزیتوری تو اکانتت میسازه</p>
<img style="float: left;" width="300" src="https://firstcontributions.github.io/assets/Readme/fork.png" alt="fork this repository" />

<h2 dir="rtl">
<a id="user-content-ریپپوزیتوری-رو-کلون-کن" class="anchor" href="#%D8%B1%DB%8C%D9%BE%D9%BE%D9%88%D8%B2%DB%8C%D8%AA%D9%88%D8%B1%DB%8C-%D8%B1%D9%88-%DA%A9%D9%84%D9%88%D9%86-%DA%A9%D9%86" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>ریپپوزیتوری رو کلون کن</h2>
<p dir="rtl">حالا ریپ و رو داخل کامپیوترت کلون کن. روی دکمه کلون کلیک کن و بعد روی (کپی در کلیپبورد) کلیک کن</p>
<img style="float: left;" width="300" src="https://firstcontributions.github.io/assets/Readme/clone.png" alt="clone this repository" />
<img style="float: left;" width="300" src="https://firstcontributions.github.io/assets/Readme/copy-to-clipboard.png" alt="copy URL to clipboard" />

<p dir="rtl">ترمینال رو باز کن و دستورات زیر رو وارد کن</p>
<pre><code>git clone "لینکی که کپی کردی"
</code></pre>
<p dir="rtl">جایی که (لینکی که کپی کردی) هست درواقع آدرس ریپوزیتوری هست که تو قدم پیش دیدی</p>

<p dir="rtl">برای مثال</p>
<pre><code>git clone https://github.com/this-is-you/contributions.git
</code></pre>
<p dir="rtl">داخل لینک بجای
<code>this-is-you</code>
نام کاربری گیتهاب خودت رو قرار بده
تو این مرحله داری محتویات ریپوزیتوری رو از گیتهاب کپی میکنی تو کامپیوتر خودت</p>
<h2 dir="rtl">
<a id="user-content-برنچ-شاخه-بساز" class="anchor" href="#%D8%A8%D8%B1%D9%86%DA%86-%D8%B4%D8%A7%D8%AE%D9%87-%D8%A8%D8%B3%D8%A7%D8%B2" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>برنچ (شاخه) بساز</h2>
<p dir="rtl">اگه هنوز داخل پوشه ریپوزیتوری نیستی. برو داخلش</p>
<pre><code>cd contributions
</code></pre>
<p dir="rtl">حالا با استفاده از دستور
<code>git checkout</code>
یک برنچ جدید بساز</p>
<pre><code>git checkout -b &lt;add-your-name&gt;
</code></pre>
<p dir="rtl">برای مثال</p>
<pre><code>git checkout -b rmros
</code></pre>
<p dir="rtl">لازم نیست کلمه
<code>add</code>
رو اول اسم برنچ بنویسی اما از اونجا که هدف از ساخت این برنچ اضافه کردن اسمت به لیست هست کار منطقی ای هست</p>
<h2 dir="rtl">
<a id="user-content-تغیرات-ضروری-رو-انجام-بده-و-کامیت-کن" class="anchor" href="#%D8%AA%D8%BA%DB%8C%D8%B1%D8%A7%D8%AA-%D8%B6%D8%B1%D9%88%D8%B1%DB%8C-%D8%B1%D9%88-%D8%A7%D9%86%D8%AC%D8%A7%D9%85-%D8%A8%D8%AF%D9%87-%D9%88-%DA%A9%D8%A7%D9%85%DB%8C%D8%AA-%DA%A9%D9%86" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>تغیرات ضروری رو انجام بده و کامیت کن</h2>
<p dir="rtl">حالا فایل
<code>Contributors.md</code>
رو داخل تکست ایدتور باز کن و اسمت رو به آخر فایل اضافه ک. بعد فابل رو ذخیره کن. اگه حالا وارد پوشه پروژه بشی و دستور
<code>git status</code>
رو اجرا کنی. میبینی که تغیرات اونجاست. حالا اون تغیرات رو به برنچی که ساختی اضافه کن با استفاده از دستور
<code>git add</code></p>
<pre><code>git add Contributors.md
</code></pre>
<p dir="rtl">حالا اون تغیرات با استفاده از دستور زیر کامیت کن
<code>git commit</code></p>
<pre><code>git commit -m "Add &lt;your-name&gt; to Contributors list"
</code></pre>
<p dir="rtl">جای
<code>&lt;your-name&gt;</code>
رو با اسم خودت عوض کن</p>
<h2 dir="rtl">
<a id="user-content-تغیرات-رو-به-گیتهاب-پوش-کن" class="anchor" href="#%D8%AA%D8%BA%DB%8C%D8%B1%D8%A7%D8%AA-%D8%B1%D9%88-%D8%A8%D9%87-%DA%AF%DB%8C%D8%AA%D9%87%D8%A7%D8%A8-%D9%BE%D9%88%D8%B4-%DA%A9%D9%86" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>تغیرات رو به گیتهاب پوش کن</h2>
<p dir="rtl">با استفاده از دستور زیر تغیراتت رو به گیتهاب پوش کن
<code>git push</code></p>
<pre><code>git push origin &lt;add-your-name&gt;
</code></pre>
<p dir="rtl">اسم
<code>&lt;add-your-name&gt;</code>
رو با اسم برنچی که ساخته بودی عوض کن</p>
<h2 dir="rtl">
<a id="user-content-تغیراتت-رو-برای-برسی-ثبت-کن" class="anchor" href="#%D8%AA%D8%BA%DB%8C%D8%B1%D8%A7%D8%AA%D8%AA-%D8%B1%D9%88-%D8%A8%D8%B1%D8%A7%DB%8C-%D8%A8%D8%B1%D8%B3%DB%8C-%D8%AB%D8%A8%D8%AA-%DA%A9%D9%86" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>تغیراتت رو برای برسی ثبت کن</h2>
<p dir="rtl">اگه بری داخل ریپوزیتوریت تو گیتهاب. میبینی که دکمه
<code>Compare &amp; pull request</code>
وجود داره . روش کلیک کن</p>

<img style="float: left;" src="https://firstcontributions.github.io/assets/Readme/compare-and-pull.png" alt="create a pull request" />

<p dir="rtl">حالا دستور پل رو ثبت کن</p>
<img style="float: left;" src="https://firstcontributions.github.io/assets/Readme/submit-pull-request.png" alt="submit pull request" />

107 changes: 106 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,106 @@
# contributions
# First Contributions

This project aims to simplify and guide the way beginners make their first contribution. If you are looking to make your first contribution, follow the steps below.

_If you're not comfortable with command line, [here are tutorials using GUI tools.](#tutorials-using-other-tools)_

<img align="right" width="300" src="https://firstcontributions.github.io/assets/Readme/fork.png" alt="fork this repository" />

#### If you don't have git on your machine, [install it](https://help.github.com/articles/set-up-git/).

## Fork this repository

Fork this repository by clicking on the fork button on the top of this page.
This will create a copy of this repository in your account.

## Clone the repository

<img align="right" width="300" src="https://firstcontributions.github.io/assets/Readme/clone.png" alt="clone this repository" />

Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button and then click the _copy to clipboard_ icon.

Open a terminal and run the following git command:

```
git clone "url you just copied"
```

where "url you just copied" (without the quotation marks) is the url to this repository (your fork of this project). See the previous steps to obtain the url.

<img align="right" width="300" src="https://firstcontributions.github.io/assets/Readme/copy-to-clipboard.png" alt="copy URL to clipboard" />

For example:

```
git clone https://github.com/this-is-you/contributions.git
```

where `this-is-you` is your GitHub username. Here you're copying the contents of the first-contributions repository on GitHub to your computer.

## Create a branch

Change to the repository directory on your computer (if you are not already there):

```
cd contributions
```

Now create a branch using the `git checkout` command:

```
git checkout -b your-new-branch-name
```

For example:

```
git checkout -b rmros
```

(The name of the branch does not need to have the word _add_ in it, but it's a reasonable thing to include because the purpose of this branch is to add your name to a list.)

## Make necessary changes and commit those changes

Now open `Contributors.md` file in a text editor, add your name to it. Don't add it at the beginning or end of the file. Put it anywhere in between. Now, save the file.

<img align="right" width="450" src="https://firstcontributions.github.io/assets/Readme/git-status.png" alt="git status" />

If you go to the project directory and execute the command `git status`, you'll see there are changes.

Add those changes to the branch you just created using the `git add` command:

```
git add Contributors.md
```

Now commit those changes using the `git commit` command:

```
git commit -m "Add <your-name> to Contributors list"
```

replacing `<your-name>` with your name.

## Push changes to GitHub

Push your changes using the command `git push`:

```
git push origin <add-your-branch-name>
```

replacing `<add-your-branch-name>` with the name of the branch you created earlier.

## Submit your changes for review

If you go to your repository on GitHub, you'll see a `Compare & pull request` button. Click on that button.

<img style="float: right;" src="https://firstcontributions.github.io/assets/Readme/compare-and-pull.png" alt="create a pull request" />

Now submit the pull request.

<img style="float: right;" src="https://firstcontributions.github.io/assets/Readme/submit-pull-request.png" alt="submit pull request" />

Soon I'll be merging all your changes into the master branch of this project. You will get a notification email once the changes have been merged.

##

0 comments on commit 6fc5523

Please sign in to comment.