About 380,000 results
Open links in new tab
  1. How do I clone a Git repository into a specific folder?

    Sep 11, 2016 · To clone git repository into a specific folder, you can use -C <path> parameter, e.g. git -C /httpdocs clone [email protected]:whatever Although it'll still create a whatever folder …

  2. How do I clone a specific Git branch? - Stack Overflow

    Git clone will clone remote branch into local. Is there any way to clone a specific branch by myself without switching branches on the remote repository?

  3. git - GitHub Clone with OAuth Access Token - Stack Overflow

    Feb 19, 2017 · I can save a github access token variable and user a script with git clone https://oauth: [email protected] /user/repo.git or just add the token itself to a script.

  4. git - How do I clone all remote branches? - Stack Overflow

    78 Here is the best way to do this: mkdir repo cd repo git clone --bare path/to/repo.git .git git config --unset core.bare git reset --hard At this point you have a complete copy of the remote …

  5. How do I clone a subdirectory only of a Git repository?

    If you never plan to interact with the repository from which you cloned, you can do a full git clone and rewrite your repository using git filter-branch --subdirectory-filter <subdirectory>

  6. git - Clone a private repository (GitHub) - Stack Overflow

    I added a new SSH key to my GitHub account for the laptop and was successful in cloning and making changes to a public test repository that I set up. However, I couldn't clone the private …

  7. How do I clone a large Git repository on an unreliable connection?

    The best method that I know of is to combine shallow clone (--depth 1) feature with sparse checkout, that is checking out only the subfolders or files that you need. (Shallow cloning also …

  8. windows - How to git clone in wsl? - Stack Overflow

    Jun 7, 2020 · Clone the repository somewhere under WSL and move it into a Windows drive, either setting the config options manually for Windows or trying git init again in the repository …

  9. git clone ssh permission denied - Stack Overflow

    C:\Program Files\Git\etc\ssh -- open ssh-config file present under it and add below information : Host github.com User git IdentityFile << absolute path to your private key for git >> -- restart …

  10. Git how to clone with SSH key, username - Stack Overflow

    This way it will apply this config and use a key different than id_rsa before actually fetching any data from the git repository. subsequent fetch or push will use the specified key to authenticate …