←back to thread

128 points nvader | 1 comments | | HN request time: 0.001s | source
Show context
donatj ◴[] No.46192531[source]
I found worktrees unnecessarily painful in Git with little advantage over just having two copies of the repo.

Your far better off just having a clone of your primary repo, and have your primary repo as a local remote. Both can have a remote for GitHub and a separate remote for each other.

replies(3): >>46193828 #>>46194649 #>>46195465 #
1. dylanowen ◴[] No.46193828[source]
I use work trees so my prototype can be open while I build my final code, but I never thought of local remotes! That'll be so much easier!