Can I create repository in Bit Bucket for ERP Next code? If yes, if I want ERP version upgrade then?

Does it make any difference in Bit Bucket code if I made ERP version upgrade in future. And what are the changes and settinggs I have to make in code/Bit Bucket?

You should create a repository for your custom app. Your erpnext should be link with GitHub to get continues update from the community

How can we link the erpnext with bitbucket? Can you please elaborate and explain please?

so you don’t want community update?

I want community update

then you should make sure it is linked with Git Hub. You can push your custom app in bitbucket.