Closed scottmuc closed 6 months ago
~/workspace/infrastructure ? git remote add pi git@pi:scottmuc/infrastructure.git
~/workspace/infrastructure ? git push pi HEAD
Enumerating objects: 5184, done.
Counting objects: 100% (5184/5184), done.
Delta compression using up to 12 threads
Compressing objects: 100% (2061/2061), done.
Writing objects: 100% (5184/5184), 3.28 MiB | 12.50 MiB/s, done.
Total 5184 (delta 3022), reused 4826 (delta 2807), pack-reused 0
remote: Resolving deltas: 100% (3022/3022), done.
To pi:scottmuc/infrastructure.git
* [new branch] HEAD -> main
*
~/workspace/infrastructure ? git lla -2
* ff887e5 (HEAD -> main, pi/main) Add background color "smarts" to nvim config
* 87be352 (origin/main, origin/HEAD) Ditching delta
The 0b90dda commit adds the functionality that enables the above commands to work. Some noteworthy configuration to reflect on is:
git
users home directory is /mnt/vcapstore/repos
so I don't have to fully qualify the repo path on the remote.git
user in /home
, so I may need to symlink so this config can survive a repave.git@git.scottmuc.com:/scottmuc/scottmuc.com.git
feels a bit... repetitive :DThis was easier than I thought to implement this. It's given me enough information to ponder how I want to go forward with this. For now I'm happy with my pi
being a lagging mirror of what's on GitHub.
To keep my mirror up-to-date, I can run the following:
cd
mr update
mr run git push pi HEAD
That being said, my PC and laptop are also mirrors. The goal here is to self-host origin
at some point. When repaving the PI, I'll need to add instructions to ensure latest code is fetched since origin
will technically be down when doing the repave :).
git
user in a way that survives repavesgit.scottmuc.com
origin
is the PI and github
is the mirror
In the spirit of digital homesteading, I would like to self host my git repositories. GitHub is way over-featured for what I really need. I may keep using it as a mirror until I have a public interface on top of what I implement here.
I will continue to use GitHub Issues.
Done When
infrastructure
is pushedpresentations
is pushedtabularasa
is pushedscottmuc.github.com
is migrated toscottmuc.com
dns-zone-blocklist
is pushedOut of Scope
devopsbookmarks.com
will remain as is... I may try and transfer ownership of it