Please feel free to contribute to the quality of this content by submitting PR's for improvements to code snippets, explanations, etc. If there's any doubt or if you think that a word/phrase is used confusingly, before submitting a PR, open an issue to ask about it.
- Contributing Guide
We recommend you work on the changes in your local environment because most of the contribution process requires you to do so rather than directly on GitHub.
Click the fork
button at the top of the front page.
Forking is a process to create a copy of this repository in your GitHub account. You always want to remember to fork a repository before cloning it.
Clone a repository means copying the remote repository into your local machine.
- Click your profile picture on the right top.
- Click "Your repositories".
- Open the forked repo by clicking on it.
- Click the green
<> Code
button. - Click the copy icon to copy the HTTPS URL.
-
In your terminal, run this command to create a copy of the forked repository in your local machine:
git clone https_url
Change the
https_url
with the HTTPS link that you've copied. -
Navigate to the directory where your local repository lives.
cd linktree
-
Install project requirements
pip install -r requirements.txt
Remember that you always want to work on and push your changes into the forked repository, not the original one.
A branch is an isolated environment to work on and save your changes. Later on, you will push this branch to the remote repository after you finish working on your changes.
Run the following command to create a branch:
git checkout -b working-branch-name
You can name the branch anything you want — for example, feature-add-text
.
After you finish working on your changes, you must add them first. Adding changes means moving them into the staging area, where they will be ready to be saved (committed).
Run this command in your terminal:
git add .
This command will add all files with changes to the staging area.
Now, it's time to commit the changes. Committing changes means saving your changes.
Run the following command:
git commit -m "Your message"
Change Your message
into your own message. For example:
git commit -m "Feat add a new background to profile"
You want to push your changes to your remote (forked) repository. Run this command in your terminal:
git push -u origin your-branch-name
Change your-branch-name
with the name of your working branch. For example:
git push -u origin feature-add-text
- Go to your forked repository on GitHub.
To ensure you're on the forked repo, look at the repo name on the top left beside the GitHub logo. It should have your GitHub username in the beginning:your-username / repository-name
. - Click the
Compare & pull request
green button on the top. - Fill in the pull request form.
- Click the green
Create pull request
button on the bottom.
And that's it! Congratulations on your first contribution to this repo! 🎉
You might encounter merge conflicts. When you encounter merge conflicts, you need to resolve them before your pull request can be merged into the main
branch to avoid collision.
Merge conflicts usually occur when changes are on the same line(s), in the same file(s), from 2 different branches. It is common to encounter merge conflicts when contributing to open source.
You may contact the contributor by opening a ticket. And if you are interested in seeking clarification about the product, contact me on Twitter
Feel free to submit an issue on the GitHub repository, we would be grateful to hear about it! Please make sure that you respect the GitHub issue template, and include:
- A summary of the issue
- A list of steps to help reproduce the issue
- The configuration or the parts that are relevant to your issue
If you wish, you are more than welcome to propose a patch to fix the issue!
You can submit an issue for feature requests. Please make sure to add as much detail as you can when doing so.
You are also welcome to propose patches adding new features.
We welcome contributions of all kinds, there is no need to do code to be helpful! All of the following tasks are noble and worthy contributions that you can make without coding:
- Reporting a bug (see the report bugs section)
- Fixing a typo in the code
- Fixing a typo in the documentation (see the documentation contribution section)
- Providing your feedback on the proposed features and designs
- Reviewing Pull Requests If you wish to contribute code (features or bug fixes)
The documentation is open-source and built with Django. You are very welcome to propose changes to it (correct typos, add examples or clarifications...) and contribute to LinkPlant.
The repository is also hosted on GitHub at: https://github.com/Terieyenike/linktree