How to push a local Git repository to another computer?

前端 未结 3 1551
眼角桃花
眼角桃花 2020-11-28 23:03

I have a local Git repository setup on my laptop. I would like to push it to my desktop.

How can I do that?

3条回答
  •  时光取名叫无心
    2020-11-28 23:07

    The easiest (not the best) way is to share the repository directory via LAN, and use git's file:// protocol (see man git).

    For me, the best way is to use gitolite (see gitolite docs for detailed instructions).

提交回复
热议问题