How to transfer git repository to my other computer?

I have a git repository installed on my iMac and I would like to download it to my MacBook so that I can work on it. How to do it?

+3
source share
4 answers

You can git clonelike any git repository. If you have git-daemon installed, this is:

git clone git://your-imac/repoName

If not, you can use ssh:

git clone username@your-imac:/path/to/your/repo
+8
source

If available, just use:

git clone

Otherwise, just copy the .git folder manually. That should be enough.

0
source

Git - .

SSH , , git clone.

0

Mac: .

  • type cd and drag the folder to the terminal.

  • you are in the same folder where you want to download

  • use the command:

    cd <folder path of local machine>
    git clone <url> 
    
    eg: Mac-mini: macuser$ cd /Users/macuser/Desktop/GIT_PROJ
    Mac-mini:GIT_PROJ macuser$  git clone https://abcd@bitbucket.org/abcd/sample.git
    
  • it will upload the repository to the local machine.

0
source

Source: https://habr.com/ru/post/1783971/


All Articles