GitHub
GitHub is a popular platform for hosting Git repositories. It is used by most modern projects and companies for collaboration and version control. This is how to declare a git repository for GitHub:
# Add a remote repository on GitHub
git remote add origin <https://github.com/user/repo.git>
Bitbucket
Bitbucket offers Git and Mercurial repositories with free private repositories. This is how to declare a git repository for Bitbucket:
# Add a remote repository on Bitbucket
git remote add origin <https://bitbucket.org/user/repo.git>
GitLab
GitLab provides Git repository management, CI/CD, and DevOps tools. This is how to declare a git repository for GitLab:
# Add a remote repository on GitLab
git remote add origin <https://gitlab.com/user/repo.git>