Menu

📰
0

local git remotes — alexander cobleigh

cblgh.org·cblgh.org·4 months ago
#P6BLsf7U
#remote#user#local#cani#home#article
Reading 0:00
15s threshold

As part of working on cani I was also using a variety of git remotes. One of the remotes was hosted on a server I have at home. Here’s how I set that up. Let’s say the server has a project in a folder called cani . This folder has the code and a .git/ directory: /home/user/projects/cani We can use the above folder to clone a bare repository (can be used as a remote without causing weird conflicts): cd /home/user/bares git clone --bare /home/user/projects/cani # creates /home/user/bares/cani.git To add this bare repository as a remote to push & pull from can look like a few different ways.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More