forked from scothann/PRpracticerepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add syntax highlighting (firstcontributions#75866)
Co-authored-by: Roshan Jossy <[email protected]>
- Loading branch information
1 parent
b7a056d
commit 6b26fca
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ Now clone the forked repository to your machine. Go to your GitHub account, open | |
|
||
Open a terminal and run the following git command: | ||
|
||
``` | ||
```bash | ||
git clone "url you just copied" | ||
``` | ||
|
||
|
@@ -108,7 +108,7 @@ where "url you just copied" (without the quotation marks) is the url to this rep | |
|
||
For example: | ||
|
||
``` | ||
```bash | ||
git clone [email protected]:this-is-you/first-contributions.git | ||
``` | ||
|
||
|
@@ -118,19 +118,19 @@ where `this-is-you` is your GitHub username. Here you're copying the contents of | |
|
||
Change to the repository directory on your computer (if you are not already there): | ||
|
||
``` | ||
```bash | ||
cd first-contributions | ||
``` | ||
|
||
Now create a branch using the `git switch` command: | ||
|
||
``` | ||
```bash | ||
git switch -c your-new-branch-name | ||
``` | ||
|
||
For example: | ||
|
||
``` | ||
```bash | ||
git switch -c add-alonzo-church | ||
``` | ||
|
||
|
@@ -144,13 +144,13 @@ If you go to the project directory and execute the command `git status`, you'll | |
|
||
Add those changes to the branch you just created using the `git add` command: | ||
|
||
``` | ||
```bash | ||
git add Contributors.md | ||
``` | ||
|
||
Now commit those changes using the `git commit` command: | ||
|
||
``` | ||
```bash | ||
git commit -m "Add your-name to Contributors list" | ||
``` | ||
|
||
|
@@ -160,7 +160,7 @@ replacing `your-name` with your name. | |
|
||
Push your changes using the command `git push`: | ||
|
||
``` | ||
```bash | ||
git push -u origin your-branch-name | ||
``` | ||
|
||
|