You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+25-8Lines changed: 25 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -488,6 +488,7 @@ To add all files and folders at once
488
488
```
489
489
490
490
To add and commit at the same time
491
+
491
492
```sh
492
493
git commit -am 'commit message'
493
494
```
@@ -513,10 +514,12 @@ Your commit message has to be associated with the changes or modifications you m
513
514
The _git log_ command allows knowing the commit history of the project. It list down all the commit history
514
515
515
516
### 10. Git log --oneline
517
+
516
518
The **git log --oneline** command allows to list minified log history
517
519
518
520
### 11. Git log -<limit>
519
-
For instance, this **git log --5** command list 5 commit history.
521
+
522
+
For instance, this **git log --5** command list 5 commit history.
520
523
521
524
### 12. Git check out
522
525
@@ -676,9 +679,10 @@ sensitive-info.txt
676
679
```
677
680
678
681
### 24 Forking
679
-
A forking is a process of owning other repository. After you clicked on fork button of a certain repository you will see that that repository became in your repository list. You can try by clicking the fork button on this repository.
680
682
681
-
Every repository that has some content in it has an active fork button on the right top corner.
683
+
A forking is a process of owning other repository. After you clicked on fork button of a certain repository you will see that that repository became in your repository list. You can try by clicking the fork button on this repository.
684
+
685
+
Every repository that has some content in it has an active fork button on the right top corner.
682
686

683
687
684
688
After forking, we can clone the repository and work on the cloned version of the project. After modifiying the original we can push to the forked verion of the repository. In addition, we can send a pull request to the original repo to contribute on the project.
@@ -711,7 +715,7 @@ git commit -am "commit message" # Grab everything & skip the stage process
711
715
712
716
git log # See the history on the repository
713
717
git log --oneline
714
-
git log -<limit>
718
+
git log -<limit>
715
719
git log --author ="name"# To check change by specific user
716
720
git log --graph # Visualize the history
717
721
@@ -726,7 +730,7 @@ git checkout <commit-id> -- <path to file> # Checkout file from specific commit
726
730
git remote -v # View remote repository-Urls
727
731
git remote add <remote name> repository-Url # Add a new remote
728
732
git push -u remote master # Push the file into github
@@ -751,6 +755,7 @@ Check the available repository features by clicking each buttons.
751
755

752
756
753
757
Check what is available on your GitHub account settings
758
+
754
759
- watch this repository
755
760
- Give start to this repository
756
761
- fork this repository
@@ -794,13 +799,15 @@ Every GitHub public repository has a wiki page. A wiki page allows you to write
794
799
# Day 6
795
800
796
801
## Collaborating on GitHub
802
+
797
803
GitHub made open-source collaboration very easy. You can collaborate to any open-souce GitHub repository by forking the repository. In this section, let's learn how to make collaborate on an open source project:
804
+
798
805
1. First Fork the [10-days-of-git-and-github](https://github.com/Asabeneh/10-days-of-git-and-github) repository
799
806
2. After forking, clone this repository on your desktop
800
-
3. Add your favorite educational links on Education Resouces categories. You can learn how to collaborate by adding links of best educational resouces on the category below. If the category is not exist, you create a new category.
801
-
807
+
3. Add your favorite educational links on Education Resouces categories. You can learn how to collaborate by adding links of best educational resouces on the category below. If the category is not exist, you create a new category.
0 commit comments