Cloning a repository with SourceTree

前端 未结 22 1368
不知归路
不知归路 2021-02-03 21:23

Can someone give me a quick walkthrough on simply cloning a repo with SourceTree?

In Bookmarks, I click on Clone Repository. For Source Path I paste in the URL which loo

相关标签:
22条回答
  • 2021-02-03 21:30

    My solution was to change the Git version from 'Use Embedded Git' to 'Use System Git'. Because I installed GitHub on my computer earlier, it seems SourceTree chose that Git by default rather than download the embedded version when it was installed.

    0 讨论(0)
  • 2021-02-03 21:30

    In my case the way I finally solved it was to uninstall SourceTree, delete the X:/Users/UserName/AddData/Local/Atlassian folder, and the reinstall the latest SourceTree. Then I went through the SourceTree setup, cloned the remote repo as normal, and I was back in business.

    As a reminder, if you go this route and you have local changes that haven't been pushed yet (like I did) make sure you copy those out to another folder BEFORE you start this process, just to be on the safe side.

    0 讨论(0)
  • 2021-02-03 21:30

    These things helped me

    • Replace SSH with Https links for the URL format.
    • Delete any old access keys (that of SourceTree) in your key chain access. This needs to be done when you change your Git repo password.

    Now try to clone again. This should fix your problem.

    0 讨论(0)
  • 2021-02-03 21:32

    It seems SourceTree can be pretty annoying in this respect. In my case, the problem was I had introduced a wrong password the first time I used SourceTree. I solved this (on a Mac) by going to SourceTree > Preferences > Accounts, clicked on my account, set the correct password and voilà. Done.

    0 讨论(0)
  • 2021-02-03 21:32

    It is known that there are issues with the clone function from Sourcetree on Mac. However there is a workaround which works for me:

    Steps:

    • Remove Sourcetree completely from your local disk (incl the 2 data folders)
    • Remove the GIT hub folders from your machine.
    • Change in the Keystore your login password to something else.
    • Reboot your system twice (2x)
    • Now you can install Sourcetree again, but do not clone from your repository!!!
    • Open a terminal and create your new (!) repository folder
    • In the terminal move to this folder and clone the repository. Command: git clone <---repository-> . (Note the dot at the end!)
    • Open finder
    • Go to the parent of the repository folder
    • Drag/drop the folder of your computer-repository into Sourcetree
    • Reboot your computer again

    This last step was needed for me to be able to perform PUSH.

    0 讨论(0)
  • 2021-02-03 21:37

    In my case I had to dis-check this: Options > Network > add proxy server conf to Git/Mercurial

    0 讨论(0)
提交回复
热议问题