|
|
|
|
Re: Transport Error: Cannot get remote repository refs. file:// ... not found [message #1855568 is a reply to message #1855532] |
Thu, 20 October 2022 13:33   |
Eclipse User |
|
|
|
Thomas,
Firstly, thanks for taking the time to reply to my post. I should not have said "a backup drive" as that implied that I was trying to create a backup of my projects. That is certainly not what I was intending. I do understand that a Version Control System is much different than a backup system. I do backup my projects on a daily basis, but that doesn't provide the same features as a version control system and that is what I was looking to use to version my various project artifacts.
In the end I will probably use GitHub as a remote repository, but being new to Git I first wanted to use it locally for a while to get use to it. I've used several different version control systems in the past and each one has their peculiarities, terminology, and idiosyncrasies. Once I'm comfortable with how Git and EGit works I'll consider using a Git server like GitHub for a remote repository.
All that said, I did finally find the step I was missing after reading the content of this link: https://en.wikibooks.org/wiki/Git/Repository_on_a_USB_stick ... and that was as follows:
1. I first created a remote repository directory on my external USB drive:
mkdir D:\git\remote\repository
2. I then CDed into that directory and entered the follwing GIT command:
git clone --bare c:\wamp64\www\leaguetracker leaguetracker
I had already set up Git in my c:\wamp64\www\leaguetracker project directory and added all the appropriate .gitignore specifications to my base directory so that only the artifacts (files) files I wanted saved to my repository were in order. This clone command shown above appeared to create a Git repository in the D:\git\remote\repository\leaguetracker directory and populated that repository with the contents of my leaguetracker project, minus all the .gitignore files. To test that the "bare" remote repository was in order, I created a dummy directory on my c: drive and cloned the directory from the D:\git\remote\repository\leaguetracker repository I just created:
c:
md C:\wamp64\www\testclone
git clone D:\git\remote\repository\leaguetracker
I was able to confirm that the C:\wamp64\www\testclone directory now contained a leaguetracker directory populated with the content of my original project, minus the .gitignore files.
3. I now went back to my original project and could use the various EGit dialogs to create a remote repository, point it at the D:\git\remote\repository\leaguetracker directory, and create all the appropriate Push and Fetch specifications correctly.
I'm now able to push and fetch as necessary to/from the remote repository as required. So essentially, it appeared that the only step I missed was the --bare clone of my project into the remote repository. I believe this was what you said too in your reply, but when you are new to a particular piece of software, it's not intuitively obvious what "create an empty repo on that backup drive first" actually means and how to do it.
Thanks again for your reply!
Regards
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04279 seconds