Totally fair concern. Sharing code publicly can feel risky, but it’s also one of the best ways to learn and build credibility. If plagiarism worries you, start by open-sourcing smaller or older projects, or parts of a larger one that aren’t critical.
People rarely gain much from just copying code; what stands out is your process, documentation, and improvement over time. Eventually, the benefits of visibility usually outweigh the risks.