There is a laptop with git 2.9.3 installed. There is an account on Github and Bitbucket , registered on the same e-mail.

  1. Can I upload some projects on Github , and other Bitbucket ?
  2. And do you need additional settings when uploading to Bitbucket ?
  • 2
    1) It can. Personally, I upload some projects on GitHub, others on BitBucket. I did not observe any failures in git related to this, // 2) I use the same git commands for uploading. I do not notice the differences. // Thank. - Sasha Chernykh
  • That is, to work with Github, you need to clone the repository with Github, and also for Bitbucket? - Swartex
  • 3
    they are initialized in different directories), so everyone will have their own hidden log, and a different config. - Alex.B
  • Here is a thank you) exactly and clearly) - Swartex
  • one
    Moreover, both on GitHub and Bitbucket, you can also upload the same repository just by setting up two upstream in your local copy and choosing a specific one using git push -u имя_рСпозитория and git pull -u имя_рСпозитория . - ߊߚ߀ߘ

1 answer 1

"Fill" (Send files and changes from the local repository to the remote) is carried out at the address specified in the remote each local repository.

When you clone a repository from a remote server (Github or Bitbucket), a remote installed in the repository with the name origin in which this address is specified. With git push origin files / changes will be sent to a remote repository with the specified address.

At the same time, nothing restricts you in changing and adding other remote . Those. You can clone the turnips from Github, change the remote and push to Bitbucket. Or vice versa. And you can add another remote for K-turnips and push both in Github and Bitbucket.