what are the good alternatives available for github i find some alternative but as long as widely people use github i cant use other service right like i cant share my alternative to other developer and force him to use this for me. so i feel like i locked in even i want to move i can't
I'm probably going to use source hut in the future. It allows contributions via email without an account requirement.
https://sourcehut.org/
codeberg.org is a thing, and it's perfectly suited for open source projects. Many neovim plugins and home lab tech I use are hosted on codeberg with no issues. If you just want to github as social media, you will never be happy.
give tangled.org a go perhaps. its got the self-hostability that cgit/forgejo does and a the social bits that github does.
gitlab is about as close as you'll get
GitLab annoys me in tons of ways, but I feel it's generally better than GitHub in lots of ways.
Huh? Why not? Say "My git repository is here $URL" then if they want to visit and/or clone it, they'll do that, otherwise don't, why does it matter?
Sure, if you're out after reaching the most people, gaining stars or otherwise try to attract "popularity" rather than just sharing and collaborate on code, then I'd understand what you mean. But then I'd begin with questioning your motivation first, that'll be a deeper issue than what SCM platform you use.