from GitHub to Bitbucket - moving things from one System to another

good day dear opensuse-experts,

first of all: many many thanks for the great support. i just do a headstart into GIT, Atom and Github and Bitbucket.

one question from GitHub to Bitbucket - moving things from one System to another: Getting back to work after a while i wanted to test things with GitHub and Bitbucket.

can i put all the git stuff (with)

a. cloning to my local machine and
b. uploading to bitbucket

so i **start like this: **


       git clone --verbose git clone [https://foo_bar@bitbucket.org/foo_bar/test.git](https://bitbucket.org/foo_bar/test.git) 

       Cloning into 'foobar'... 

       
    PS C:\Users\Mitarbeiter\Documents\_mk_\_dev_\python> git clone --verbose git clone [https://foo_bar@bitbucket.org/foo_bar/test.git](https://bitbucket.org/foo_bar/test.git)
    Cloning into 'test'...
    remote:
    Counting objects: 3, done. 

       remote: Compressing objects: 100% (2/2), done. 

       remote: Total 3 (delta 0), reused 0 (delta 0) 

       Unpacking objects: 100% (3/3), done. 

       
   can  i put all the git stuff (with)   

   a. cloning to my local machine  and
b. uploading to bitbucket 

     

   does this work ?!

With few exceptions git should work the same way with all git services although I haven’t seen “git --verbose” in front of another git command.

When you clone a remote repository to your local machine, except for your authentication credentials you should be all set up automatically to upload to the git service repository.

If you modified by adding any new files, then you should first “add” those files with the following(note the period at the end which can be easy to overlook). All commands should be from the root of your repository.

git add .

Stage your upload by doing a commit. The following is supported by Github but might not work for all services by combining the commit command with a comment

git commit -am "Description of your changes"

Then push your changes

git push

If any above command isn’t permitted, you should see a description what you need to do to resolve the issue.
If at any time you lose track of what steps you’ve done or can’t remember what should be done next, query for your status

git status

HTH,
TSU

Yes should work the same way, did some testing a while ago “tsu2” response is already correct I would like to add that if you sourcetree in Github it will also work the same way in Bitbucket for future reader.