Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW_BRANCH #96192

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1735,3 +1735,4 @@
- [ZnnnnnH2](https://github.com/ZnnnnnH2)
- [HQHC](https://github.com/HQHC)
- [Priyesh1311421](https://github.com/Priyesh1311421)
- [Rojer Hein](https://github.com/HeinRojer)
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,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"
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.
Expand All @@ -122,7 +122,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
git clone [email protected]:this-is-you/first-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.
Expand All @@ -132,19 +132,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
cd first-contributions
```

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

```bash
git switch -c your-new-branch-name
git switch -c your-new-branch-name
```

For example:

```bash
git switch -c add-alonzo-church
git switch -c add-alonzo-church
```

<details>
Expand All @@ -155,7 +155,7 @@ If the error message "Git: `switch` is not a git command. See `git –help`" app
In this case, try to use `git checkout` instead:

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

</details>
Expand All @@ -171,13 +171,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
git add Contributors.md
```

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

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

replacing `your-name` with your name.
Expand All @@ -187,7 +187,7 @@ replacing `your-name` with your name.
Push your changes using the command `git push`:

```bash
git push -u origin your-branch-name
git push -u origin your-branch-name
```

replacing `your-branch-name` with the name of the branch you created earlier.
Expand Down