Need Help with a Temporary Git Setup Between Two Computers

0
0
Asked By CoderDude89 On

I'm in a tricky spot with my git setup. I've got this git repository (let's call it repo 1) that I can only access on one specific computer. Ideally, I want to work on my code from another computer that I prefer using. My plan was to create a second repository (repo 2) and pull in repo 1 so I could make and push changes from my preferred computer, then switch to the other computer to pull updates from repo 2 and push them back to repo 1.

However, when I tried this, I got an error suggesting I should use submodules, but that approach doesn't quite fit my situation. Also, creating a shared folder for repo 1 isn't an option since the other computer isn't online all the time. So, what are my options? Thanks in advance for any help!

3 Answers

Answered By DevNinja22 On

I'm curious, why can’t you access the repo from your preferred computer? If it’s just about how things are set up, it might be easier to manage things more directly without complicating it with another repo. Also, look into installing something like WireGuard or Tailscale to connect networks; that may save you from dealing with all these git workarounds.

Answered By TechSavvy432 On

Honestly, I’d advise against this setup. You might regret it down the line, especially if you're planning to maintain it long-term. It could cause confusion and potential errors, which could really slow you down!

CoderDude89 -

Fair point! I guess I want to avoid headaches later.

Answered By GitGuru17 On

So it sounds like the limitations you're facing aren't necessarily company-enforced? It might help to clarify why your access is so restricted. Have you considered using a VPN to access repo 1 remotely? Setting up a VPN connection on your local network could really simplify things. Also, you might want to check out the `--mirror` option to clone a clone of your repo, which might help in this scenario!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.