Skip to content

Instantly share code, notes, and snippets.

@sposmen
Created April 4, 2014 15:41
Show Gist options
  • Save sposmen/9977319 to your computer and use it in GitHub Desktop.
Save sposmen/9977319 to your computer and use it in GitHub Desktop.

Two Different Repositories (USB or Different Path)

  1. Create (option --no-hardlinks)

    mkdir /path/to/repository.git git clone --local --bare [--no-hardlinks] . /path/to/repository.git

  2. Initial Data From branchname(could be master)

    git remote add <reponame> file:///path/to/repository.git git push <reponame> <branchname>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment