Skip to content

Commit

Permalink
Merge branch 'master' into Pro-first-contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
PronomitaDey authored Oct 15, 2017
2 parents d4e193a + cfa9c89 commit e44292a
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 18 deletions.
30 changes: 18 additions & 12 deletions Contributors.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
- [Manuka Maduranga](https://github.com/manukam)
- [Rohan Taneja](https://github.com/rohan20)
- [Nirmala Thapa](https://github.com/nirmalathapa)
- [Manuka Maduranga](https://github.com/manukam)
- [Pankaj Kumar Gautam](https://github.com/kd098)
- [Abhinav Mathur](https://github.com/597abhinav)
- [Ritwik Raj Srivastava](https://github.com/ritwik787)
- [Manish Sharma](https://github.com/iammangod96)
- [fromMaybe](https://github.com/fromMaybe)
- [Muaaz Bin Sarfaraz](https://github.com/MuaazBin)
- [Anish Duwal](https://github.com/duwalanise)
- [Ronak Kumar](https://github.com/lifecoderonak)
- [Magnus Cardell](https://github.com/MagnusCardell)
- [Anish Duwal](https://github.com/duwalanise)
- [Magnus Cardell](https://github.com/MagnusCardell)
- [Shaheem](https://github.com/shaheemMPM)
- [Varun](https://github.com/varunzxzx)
- [Cody R](https://github.com/crod93)
Expand All @@ -29,10 +31,6 @@
- [Vidushi Jain](https://github.com/VidushiJain30)
- [Aditya Agarwal](https://github.com/itaditya)
- [Rohit Jakhmola](https://github.com/Rohit599)
- [Mukund Banka](https://github.com/mukund54)
- [Michael Kolodziejski](https://github.com/Packetdude)
- [Parker Dyer](https://github.com/parkerdyer)
- [Jessica Campbell](https://github.com/jlcampbell)
- [Rebecca Williams](https://github.com/Becca941)
- [Andrei Ushakov](https://github.com/aushakov95)
- [Zakaria Soufiani](https://github.com/zakaria-soufiani)
Expand Down Expand Up @@ -219,7 +217,6 @@
- [David](https://github.com/nowtech)
- [Prerna Sony](https://github.com/prernasony)
- [binkpitch](https://github.com/binkpitch)
- [Sudeshana Ariyasena](https://github.com/sudeshana)
- [Ashish Singh](https://github.com/ashishkumsingh)
- [Ryan Brink](https://github.com/brink-ry)
- [Sudeshana Ariyasena](https://github.com/sudeshana)
Expand Down Expand Up @@ -362,7 +359,6 @@
- [Velimir Kumric](https://github.com/vkumric)
- [Monir Zaman](https://github.com/zamanuap)
- [Kiran](https://github.com/mysninja)
- [Monir Zaman](https://github.com/zamanuap)
- [Zachary Kearns](https://github.com/zacharykearns)
- [Birksy89](https://github.com/birksy89)
- [Kamil Doroszewicz](https://github.com/l3szcz)
Expand Down Expand Up @@ -423,7 +419,6 @@
- [Ronald Thompson](https://github.com/ronwthompson)
- [Shivam](https://github.com/Shivam-sopho)
- [Anupam Dagar](https://github.com/Anupam-dagar)
- [Ronald Thompson](https://github.com/ronwthompson)
- [Zach McCall](https://github.com/zwmccall)
- [Vaibhav Rai](https://github.com/RaiVaibhav)
- [Santosh Viswanatham](https://github.com/viswanathamsantosh)
Expand All @@ -434,7 +429,6 @@
- [Vaibhav Jain](https://github.com/VJ-Jain)
- [Rishabh Bansal](https://github.com/rishabh-bansal)
- [Arjun Agarwal](https://github.com/a-agrwaal)
- [Rishabh Bansal](https://github.com/rishabh-bansal)
- [Harsh Shah](https://github.com/harshcrop)
- [Juan Jimenez](https://github.com/PurgePJ)
- [Hari](https://github.com/hapr05)
Expand All @@ -449,6 +443,7 @@
- [Igor Chiriac](https://github.com/yanime)
- [Rajdeep Dosanjh](https://github.com/rdosanjh)
- [Nikita Tiwari](https://github.com/nikitiwari)
- [Rohit Jakhmola](https://github.com/Rohit599)
- [Brett](https://github.com/CrazyLlama)
- [jlapitan](https://github.com/jlapitan)
- [Stéphane Salomon](https://github.com/theflupke)
Expand Down Expand Up @@ -491,7 +486,6 @@
- [Dimitrio Mandamadiotis](https://github.com/dimitrio-m)
- [Nicholas Meschke](https://github.com/Nixsm)
- [Swapnil Sharma](https://github.com/swapsha96)
- [Rishabh Bansal](https://github.com/rishabh-bansal)
- [WeiChiaChang](https://github.com/WeiChiaChang/)
- [Yasha Singh](https://github.com/yashasingh)
- [Desiderio Martinez](https://github.com/siderio2)
Expand Down Expand Up @@ -721,6 +715,18 @@
- [subhamtandon](https://github.com/subhamtandon)
- [Vanessa Osuka](https://github.com/Ijebusoma)
- [Akash Saravanan](https://github.com/akashsara)
- [Shaun O'Connor](https://github.com/shaunoc09)
- [Marek Dano](https://github.com/marekdano)
- [Marcos Gómez](https://github.com/margobra8)
- [Pronomita Dey](https://github.com/PronomitaDey)
- [Gabriel Arruda](https://github.com/gabrieldi95)
- [Yern Yee](https://github.com/YernYee)
- [Min Hoo Lee](https://github.com/minhoolee)
- [Matic Zavadlal](https://github.com/maticzav)
- [Nate Denys](https://github.com/ndenys650)
- [Dmitry Kudriavtsev](https://github.com/dkudriavtsev)
- [Mark Freeman](https://github.com/Jac08H)
- [Zac Cericola](https://github.com/zcericola)
- [Fabio Serrao](https://github.com/Serrones)
- [Simon W.] (https://github.com/b30bd351371c686298d32281b337e8e9)
- [B Maynard](https://github.com/bmaynard87)
18 changes: 18 additions & 0 deletions additional-material/Useful-links-for-further-learning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Useful Links

This document is dedicated to all the blog posts, helpful sites, tips and tricks websites that makes our lives easier. That we refer to for all our needs, be it a beginner or an expert. This page should act as an index of all those useful links that would help everybody who is new in the open-source domain or someone who wants to learn more.

## The List
1. ![Interactive tutorial to git](https;//try.github.io)
2. ![git - the simple guide](http://rogerdudler.github.io/git-guide/)
3. ![On undoing, fixing, or removing commits in git](http://sethrobertson.github.io/GitFixUm/fixup.html)
4. ![Git and GitHub tutorial translated to many languages](https://github.com/Roshanjossey/first-contributions)
5. ![Merge Conflicts](https://www.git-tower.com/learn/git/ebook/en/command-line/advanced-topics/merge-conflicts)
6. ![Resolving Merge Conflicts](https://githowto.com/resolving_conflicts)
7. ![Git cheat sheet](https://www.git-tower.com/learn/cheat-sheets/git)
8. ![Common Git Problems](https://www.codementor.io/citizen428/git-tutorial-10-common-git-problems-and-how-to-fix-them-aajv0katd)
9. ![Git Rebase](https://blog.gitprime.com/git-rebase-an-illustrated-guide/)
10. ![Beginner's Guide to Rebasing and Squashing](https://github.com/servo/servo/wiki/Beginner%27s-guide-to-rebasing-and-squashing)


Keep adding more links, that you find helpful.
8 changes: 8 additions & 0 deletions additional-material/additional-material.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ This document provides information about how to keep your forked repository up-t
### [ Reverting a commit](reverting-a-commit.md)
This document provides information about how to revert a commit on the remote repository. It comes in handy in case you when you need to undo a commit that has already been pushed to Github.
> Take these steps if you want to reverse a commit.
### [ Undo-ing a local commit ](undoing-a-commit.md)
This document provides information about how to undo a commit on your local repository. This is what you need to do when you feel you've messed up your local repository and wish to reset the local repository.
> Take these steps if you want to undo/reset a local commit.
### [Useful Links](Useful-links-for-further-learning.md)
This document is dedicated to all the blog posts, helpful sites, tips and tricks websites that makes our lives easier. That we refer to for all our needs, be it a beginner or an expert. This page should act as an index of all those useful links that would help everybody who is new in the open-source domain or someone who wants to learn more.

55 changes: 55 additions & 0 deletions additional-material/undoing-a-commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
## Undo local commits

To undo a local commit, all you need to do is
```
git reset
```
This command will reset your staging area to your most recent commit, but the changes you made to your working directory will not change. So, you can still re-commit again what you've changed.
Or, if you only want to remove one file from your previous commit. Then, you can do the command below
```
git reset <file>
```
The command will remove only the specified file from the staging area, but changes made on the file still remained.

Example of ```git reset``` usage
```
# Make changes in index.php and tutorial.php
# Add files into the staging area
$ git add .
# Remembered both files need to be committed separately
# Unstage tutorial.php
$ git reset tutorial.php
# Commit index.php first
$ git commit -m "Changed index.php"
# Commit tutorial.php now
$ git add tutorial.php
$ git commit -m "Changed tutorial.php"
```

Let's say if you have messed up your local repository and you just want to reset it to your last commit.
Then, you can run the command below.
```
git reset --hard
```
The command will not only reset your staging area, but also revert all your changes on the files to your last commit.
The mode ```--hard``` tells Git to undo all the changes in the working directory too.
You should only run this when you are really sure of throwing your whole local development out.

Example of ```git reset --hard``` usage
```
# Decided to start a crazy experiment
# Create a new file 'crazy.php' and add some code to it
# Commit crazy.php
$ git add crazy.php
$ git commit -m "Started a crazy dev"
# Edit crazy.php file again and changed a lot other files
# Commit all tracked files
$ git add .
$ git commit -m "Continued dev"
# Tested and things went out of hand
# Decided to remove the whole things
$ git reset --hard HEAD~2
```
The ```git reset --hard HEAD~2``` moves the current branch backward by 2 commit points in the same time reverting all changes you have made and remove the 2 snapshost we have just created from project history.

P.s. Never perform ```git reset --hard``` if you've already pushed your commits to a shared repository as it will cause problems to everyone on that repository.
12 changes: 6 additions & 6 deletions translations/README.th.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[<img align="right" src="https://firstcontributions.herokuapp.com/badge.svg">](https://firstcontributions.herokuapp.com)

# "Contribute" ผลงานในกิตฮับกับผู้อื่นครั้งแรกใช่ไหม?
# "Contribute" ผลงานใน Github กับผู้อื่นครั้งแรกใช่ไหม?

ครั้งแรกของทุกอย่างมันมักจะยากเสมอ โดยเฉพาะการทำงานร่วมกับผู้อื่น เวลาทำอะไรผิดพลาดก็จะรู้สึกไม่สบายใจ แต่ opensource คือโลกของการทำงานร่วมกัน! เราจึงอยากให้ผู้ที่เข้ามาใหม่ได้เรียนรู้วิธีการ "คอนทริบิ้วต์" ผลงานร่วมกับผู้อื่นในกิตฮับแบบง่ายๆ
ครั้งแรกของทุกอย่างมันมักจะยากเสมอ โดยเฉพาะการทำงานร่วมกับผู้อื่น เมื่อเราทำอะไรผิดพลาดเรามักรู้สึกไม่สบายใจ แต่ Opensource คือโลกของการทำงานร่วมกัน! เราจึงอยากให้ผู้ที่เข้ามาใหม่ได้เรียนรู้วิธีการ "คอนทริบิ้วต์" ผลงานร่วมกับผู้อื่นใน Github แบบง่ายๆ

การอ่านบทความและการทำตามตัวอย่างต่างๆ ก็อาจช่วยได้ แต่จะมีอะไรดีไปกว่าการที่เราได้ลงมือทำสิ่งนั้นๆ ด้วยตัวเองล่ะ! โปรเจ็คนี้จะสอนให้มือใหม่ส่ง "คอนทริบิ้วชั่นครั้งแรก" ได้อย่างง่ายๆ

Expand Down Expand Up @@ -79,17 +79,17 @@ git commit -m "Add <ชื่อของคุณ> to Contributors list"
```
แทนที่ `<ชื่อของคุณ>` ด้วยชื่อจริงๆของคุณ.

## "Push" โค้ดที่เปลี่ยนไปขึ้นบนกิตฮับ
## "Push" โค้ดที่เปลี่ยนไปขึ้นบน Github

"Push" ผลงานที่คุณทำเมื่อกี้นี้ขึ้นกิตฮับ ด้วยคำสั่ง `git push`:
"Push" ผลงานที่คุณทำเมื่อกี้นี้ขึ้น Github ด้วยคำสั่ง `git push`:
```
git push origin <ชื่อ branch ของคุณ>
```
แทนที่ `<ชื่อ branch ของคุณ>` ด้วยชื่อของ branch ของคุณที่เพิ่งสร้างไปเมื่อหัวข้อที่แล้วๆ (add-ชื่อ-ของ-คุณ)

## ส่งผลงานของคุณและรอรีวิวจากเจ้าของโปรเจ็ค

ไปที่ repository ของคุณบนกิตฮับ คลิ๊กที่ `Compare & pull request`
ไปที่ repository ของคุณบน Github คลิ๊กที่ `Compare & pull request`

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

Expand All @@ -101,7 +101,7 @@ git push origin <ชื่อ branch ของคุณ>

### [ข้อมูลอื่นๆเพิ่มเติม](additional-material/additional-material.md)

## ทัวเทอร์เรียลสำหรับการใช้กิตฮับร่วมกับ Tools อื่นๆ
## ทัวเทอร์เรียลสำหรับการใช้ Github ร่วมกับ Tools อื่นๆ


|<a href="github-desktop-tutorial.md"><img alt="GitHub Desktop" src="https://desktop.github.com/images/desktop-icon.svg" width="100"></a>|<a href="github-windows-vs2017-tutorial.md"><img alt="Visual Studio 2017" src="https://www.microsoft.com/net/images/vslogo.png" width="100"></a>|<a href="gitkraken-tutorial.md"><img alt="GitKraken" src="/assets/gk-icon.png" width="100"></a>|
Expand Down

0 comments on commit e44292a

Please sign in to comment.