-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ryan Barry edited this page Jun 14, 2020
·
3 revisions
This repo is set up as a "subset" of a typical unix-like home directory. Because git will refuse to clone into a directory that already has files, the clone process is a little roundabout. After the steps below, you should be able to manage it basically as you'd expect. Tips & gotchas are collected in the Notes section below.
Copypasta:
cd
git init --separate-git-dir=dotfiles .
git remote add -f -t \* origin [email protected]:ryanbarry/dotfiles.git
git checkout master
Example run:
ryan@bluebarry ~> git init --separate-git-dir=dotfiles .
Initialized empty Git repository in /Users/ryan/dotfiles/
ryan@bluebarry ~ (master)> git remote add -f -t \* origin [email protected]:ryanbarry/dotfiles.git
Updating origin
remote: Enumerating objects: 65, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 206 (delta 33), reused 59 (delta 31), pack-reused 141
Receiving objects: 100% (206/206), 47.89 KiB | 2.28 MiB/s, done.
Resolving deltas: 100% (107/107), done.
From github.com:ryanbarry/dotfiles
* [new branch] master -> origin/master
ryan@mmxmbp ~ (master)> git checkout master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Already on 'master'