Reputation: 2194
I have two repositories: one is on my PC and the second is on my laptop. I would like to publish my changes from my laptop now so that they are confirmed on my PC too.
I use LAN to share my files as read-only and I am thinking what is disadvange of committing changes from laptop and later pulling them on my PC, instead of using push from my my laptop directly? Is it a bad way?
Upvotes: 0
Views: 43
Reputation: 4061
I understand you simply want to keep the repo on your desktop and laptop in sync. I would suggest using a bare repo on your desktop as your remote and use that repo to sync both the repos on your desktop and laptop from that bare repo.
A remote
is simply a bare repo from which you can clone your repo onto any machine.
origin
is just a name given by convention to the first remote of a repo.
Upvotes: 2