Results 1 to 3 of 3

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

  1. #1

    Default 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:

    Code:
           git clone --verbose git clone https://foo_bar@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
        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 ?!
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,125
    Blog Entries
    2

    Default Re: from GitHub to Bitbucket - moving things from one System to another

    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.
    Code:
    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
    Code:
    git commit -am "Description of your changes"
    Then push your changes
    Code:
    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
    Code:
    git status
    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: from GitHub to Bitbucket - moving things from one System to another

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •