👨‍🏫 Tutorial Create your First Github Contribution [using CLI]

STICKnoLOGIC

Forum Guru

CLI Guide​

Welcome! In this section, we will help you step-by-step on how to contribute to You do not have permission to view the full content of this post. Log in or register now. using the CLI or Command Line

If you don't have git in your device, You do not have permission to view the full content of this post. Log in or register now..

Requirement/s:​

  • Device (recommended: laptop or PC)
  • Github Account
  • Brain.exe

for more information, visit the following:
You do not have permission to view the full content of this post. Log in or register now.
You do not have permission to view the full content of this post. Log in or register now.

--------------------------------------

Fork The First-Accord repository​

fork.png

You do not have permission to view the full content of this post. Log in or register now. the First Accord repository by clicking the fork button at the top of You do not have permission to view the full content of this post. Log in or register now.. This will create a copy of this repository in your account.

Cloning the Repository​

clone.png

Now, clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click the code button, then on the HTTPS tab, and then click the copy to clipboard icon.

copy-to-clipboard.png

Open a terminal and run the following git command:
Bash:
git clone "url you just copied"

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

For example:

Bash:
git clone https://www.github.com/this-is-you/first-accord.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​

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

Bash:
cd first-accord

Now create a branch command:

Bash:
git checkout -b your-branch-name

For Example:

Bash:
git checkout -b sticknologic-branch

Make necessary changes and commit those changes​

Go to the contributors Folder/Directory and copy the content of TEMPLATE.json (the template consists of essential/required parameters in JSON structure. To know more, You do not have permission to view the full content of this post. Log in or register now.)

Bash:
cd contributors

Now in contributors Directory, Create a json file this-is-you.json(where this-is-you is your Github username), Open the created json file in a text editor and paste the content you copied from the TEMPLATE.json, edit the json file(You do not have permission to view the full content of this post. Log in or register now.). Now, save the file.

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

git-status.png

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

Bash:
git add this-is-you.json

Where this-is-you is your GitHub username.

Now commit those changes using the git commit command:

Bash:
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:

Bash:
git push -u origin your-branch-name

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.

compare-and-pull.png

Now submit the pull request.

submit-pull-request.png

I'll be merging all of your modifications into the project's main branch shortly. Once the changes have been merged, you will receive an email notification.

Where to go from here?​

Congratulations! You have successfully completed the standard workflow: fork -> clone -> edit -> pull request that you will frequently encounter as a contributor.

You are welcome to join our community or group if you need assistance or have any questions.

Let's help you get started with contributing to other projects. I recommend beginning with You do not have permission to view the full content of this post. Log in or register now.. This project was heavily inspired by it, just so you know!
 
Thank you for sharing the CLI Guide for contributing to First Accord! It's great to see such detailed instructions for newcomers. Here's a breakdown of the steps outlined in your post:

1. Fork The First-Accord repository: This step involves creating a copy of the original repository under your GitHub account. By forking the repository, you can make changes without affecting the original project. Once you've made your modifications, you can submit a pull request to merge your changes back into the main project.

2. Congratulations on completing the standard workflow: The standard contribution workflow involves forking the repository, cloning it to your local machine, making edits, and then submitting a pull request to contribute your changes back to the main project. It's great to see that contributors are guided through this process step by step.

3. Joining the community: It's wonderful to see an invitation for contributors to join the community or group for assistance and support. Building a welcoming and supportive community is crucial for attracting and retaining contributors.

4. Recommendation for further contributions: The suggestion to start contributing to other projects, such as First Contribution, is excellent advice. It's always beneficial for newcomers to gain hands-on experience with different projects and workflows to enhance their skills and understanding of open source contributions.

Overall, the guide provides clear instructions and encouragement for individuals looking to contribute to First Accord using the CLI. It's a great resource for beginners and experienced contributors alike!
 

About this Thread

  • 2
    Replies
  • 251
    Views
  • 2
    Participants
Last reply from:
Well1AmNichtDiePerson

Trending Topics

Online now

Members online
703
Guests online
1,378
Total visitors
2,081

Forum statistics

Threads
2,272,638
Posts
28,944,205
Members
1,237,297
Latest member
tripodjake
Back
Top