gge-ucd / Discussion

Class discussion for R-DAVIS course
0 stars 4 forks source link

error message cloning the repository into RStudio... #27

Closed ryanpeek closed 6 years ago

ryanpeek commented 6 years ago

When trying to set up and clone a repository in RStudio, these error messages popped up, both via HTTPS and SSH methods:

image

image

This was on MacOSX

ryanpeek commented 6 years ago

The solution we ended up checking (after making sure git was installed, R/RStudio were up to date):

rpesapan commented 6 years ago

I'm having the same issue, but after I use Terminal and type git clone I'm given the following options: usage: git clone [] [--] [

]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive           initialize submodules in the clone
    --recurse-submodules  initialize submodules in the clone
    -j, --jobs <n>        number of submodules cloned in parallel
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --single-branch       clone only one branch, HEAD or --branch
    --shallow-submodules  any cloned submodules will be shallow
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository
    -4, --ipv4            use IPv4 addresses only
    -6, --ipv6            use IPv6 addresses only

I'm not sure from your solution what I do next to create the clone. Do I want shared, local, bare, reference, or mirror repository? I assumed "reference" so I typed git clone --reference <https://github.com/gge-ucd/w01-fix-readme-rpesapan.git> and the outcome is: -bash: syntax error near unexpected tokennewline'`

ryanpeek commented 6 years ago

Hi @rpesapan! Sorry I wasn't more explicit and clear, my fault. what you'll need to do is copy the https link (look for the big green button on your repository on Github.com (Step 2 of these instructions). After you have copied the https version of link, you can paste that into your git clone command so it should look like this:

Hope this helps! 👍