GIT clone to external drive for backup

前端 未结 6 771
忘掉有多难
忘掉有多难 2020-12-23 15:13

We have GIT set up within our windows network (using msysgit & GitExtensions). We each have our own repositories and we push to a remote \'bare\' repository on one of o

6条回答
  •  不思量自难忘°
    2020-12-23 15:54

    Problem solved:

    h: (flash drive)
    cd \
    mkdir YourProject
    cd YourProject
    git init
    git remote add origin git@github.com:user/YourProject.git
    git remote add local C:\w\YourProject
    git pull origin master
    git push local master
    

提交回复
热议问题