Contributing
Contributing to Carch

We’re excited that you’re interested in contributing to Carch! Contributions of all kinds are welcome, whether you’re fixing bugs, adding new features, or improving documentation. Follow this guide to get started.
📌 Understand the Codebase
Before contributing, understand the structure of Carch:
-
The
main script
of Carch is located in:Directorysrc/
Directoryscripts/
- carch Main Carch Script
- main.rs Main Rust Script
-
All
additional
scripts of Carch are stored in:Directorysrc/scripts/scripts/
- Alacritty.sh
- Aur.sh
- Bash.sh
- Bun.sh
- Dwm.sh
- Fastfetch.sh
- Fish.sh
- Fonts.sh
- Grub.sh
- Helix.sh
- Hyprland.sh
- i3wm.sh
- Kitty.sh
- LTS-Kernel.sh
- Neovim.sh
- Npm.sh
- Packages.sh
- Picom.sh
- Rofi.sh
- Sddm.sh
- SwayWM.sh
- Themes-Icons.sh
- Tmux.sh
- Wallpapers.sh
- Zsh.sh
If you have questions or need help, feel free to contact us:
📧 Email: harilvfs@chalisehari.com.np
💬 Discord: Join Here
Steps to Contribute
1. 🍽️ Fork the Repository
- Go to the Carch GitHub page.
- Click the Fork button in the top-right corner to create your own copy of the repository.
2. 🌿 Clone the Forked Repository
-
Use the following command to clone the repository to your local system:
Terminal window git clone https://github.com/your-username/carch.git -
Replace
your-username
with your GitHub username.
3. 🌱 Set the Original Repository as Upstream
-
Add the original Carch repository as an upstream remote to keep your fork up to date:
Terminal window cd carchTerminal window git remote add upstream https://github.com/original-author/carch.git
4. 🍇 Create a New Feature Branch
-
Before making changes, create a new branch with a descriptive name:
Terminal window git checkout -b feature/your-branch-name -
Examples of branch names:
feature/add-new-script
bugfix/fix-installation-issue
5. 🔧 Make Your Changes
- Implement the necessary changes to the code or documentation.
- Ensure that your changes are clear, tested, and follow the project’s coding standards.
6. 📝 Stage and Commit Your Changes
-
Add the modified files to the staging area:
Terminal window git add . -
Commit your changes with a clear message:
Terminal window git commit -m "Add: [brief description of your changes]"
7. 🚀 Push the Changes to Your Fork
-
Push your branch to your forked repository:
Terminal window git push origin feature/your-branch-name
8. 📥 Submit a Pull Request (PR)
- Go to the original Carch repository on GitHub.
- Click on New Pull Request.
- Select your branch from the dropdown and describe your changes in detail.
- Submit the PR for review!
Guidelines
Code Quality
- Follow the existing coding style of the project.
- Write clear, concise, and well-documented code.
Testing
- Test your changes locally to ensure they work as expected.
- If your changes introduce new features, add necessary tests where applicable.
Documentation
- If your changes involve new functionality, update the relevant documentation.
- Ensure the README or Wiki reflects your updates.
Syncing Your Fork
-
Keep your fork updated to avoid conflicts:
Terminal window git fetch upstreamTerminal window git merge upstream/main- Replace
main
with the default branch of the repository if it’s different.
- Replace
Thank you for contributing to Carch! Your effort helps make this project better for everyone.