Skip to content

Instantly share code, notes, and snippets.

@dahlbyk
Created September 24, 2015 17:03
Show Gist options
  • Save dahlbyk/f6065b6c310062d94682 to your computer and use it in GitHub Desktop.
Save dahlbyk/f6065b6c310062d94682 to your computer and use it in GitHub Desktop.
Local Clone
PS>git init test
Initialized empty Git repository in C:/temp/test/.git/
>
PS>cd test
>
PS>git commit --allow-empty -m test
[master (root-commit) 33f14f7] test
>
PS>cd ..
>
PS>git clone file:///c/temp/test cloned
Cloning into 'cloned'...
remote: Counting objects: 2, done.
remote: Total 2 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2/2), done.
Checking connectivity... done.
>
PS>cd .\test
>
PS>git commit --allow-empty -m test2
[master 122ec0d] test2
>
PS>cd ..
>
PS>cd .\cloned
>
PS>git pull
remote: Counting objects: 1, done.
remote: Total 1 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (1/1), done.
From file:///c/temp/test
33f14f7..122ec0d master -> origin/master
First, rewinding head to replay your work on top of it...
Fast-forwarded master to 122ec0d4f183e2dbc162d77697ae82cf897d1e6c.
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment