Working with git clone but on remote server [message #1459037] |
Sun, 02 November 2014 02:51 |
Atul Kakrana Messages: 5 Registered: November 2014 |
Junior Member |
|
|
Hi All,
I am having problem using git and need help from you guys. We have multiple servers which obviously are interconnected. On our central server lies main git, to work with these gits we clone them on one of the other (more powerful) server (Server-A) and work with the scripts i.e. develop and test; and finally push to central server. The reason we always work on servers and never local desktops is because scripts mostly involve processing large data sets and uses parallel processing so huge memory and decent amount of cores is required while developing the scripts.
In past, I used to mount onto my Linux desktop/laptop, the HOME directory of server and open the files directly, modify and save them. But after git this doesn't seems to be a good option due to multiple branches that we can make and work on one by one. So there is no single file, in fact, if I am correct there is no physical file for every branch.
As, I have used Eclipse in past to access to work on files that lie on remote server I thought I could do the same with gits i.e. add git from remote server or mounted HOME directory. But I think I was wrong, EGIT has no option to add remote git and I believe it can only work with remote gits. Here is my scenario:
Desktop/Laptop ----SSH-----> Server A (Powerful server with git clones) <---------PUSH/PULL-------> Central Server (main gits)
The scripts or packages that I work on can only be developed on Server A and not on my desktop. Is there a way I can add cloned-git from server A to my local desktop eclipse so that I can develop and test real time and switch branches?
From last few days, I am trying to find a solution for this and would appreciate your help.
Best
BADE
|
|
|
|
Re: Working with git clone but on remote server [message #1460491 is a reply to message #1460302] |
Mon, 03 November 2014 16:16 |
Atul Kakrana Messages: 5 Registered: November 2014 |
Junior Member |
|
|
Hi Chris,
Quote:Imagine you can mount //serverA/home to /mnt/serverAHome on your Laptop
I mount using the Ubuntu's inbuilt functionality to "connect to server" which adds the /serverA/home to my network drives with local mount point at /run/user/1000/gvfs
Quote:Then you can start Eclipse on your Laptop and clone the central repo to your personal clone of the repo located on serverA. E.g. on your laptop you clone //centralServer/yourRepo.git to /mnt/serverAHome/<yourID>/git/yourRepo. Now you can access all the files with Eclipse from your laptop.
I already have cloned the repository to server-A using terminal via ssh. Using the git perspective in eclipse, when I try to add these repositories by navigating to the local mount point of server-A and then to git folder, I can see two repositories found by eclipse but these are not added after I press 'finish' button. [Photo Attached- Adding_Git_mod]
I followed your advise too, to clone the repositories using Eclipse. For this, I mounted another server (Server-X) to my Ubuntu desktop and then used "Clone Git repository" steps to clone one of the repo. from our central server. It did added a repository to the Server-X and I can confirm because I can see the files in nautilus/window explorer but again no git added to eclipse under "git repositories". [Photo Attached - Empty_Git]
So it seems that Eclipse is identifying as well as cloning the gits properly to the servers (A and X) mounted on my desktop. Its just that these are not added or listed in Eclipse. Any suggestions?
I really appreciate your help.
[Updated on: Mon, 03 November 2014 16:19] Report message to a moderator
|
|
|
|
Re: Working with git clone but on remote server [message #1460891 is a reply to message #1460747] |
Tue, 04 November 2014 02:22 |
Atul Kakrana Messages: 5 Registered: November 2014 |
Junior Member |
|
|
Hi Chris,
Quote:Can't you mount more traditionally that you have a more standard path?
I might be able to but using the default method is very stable. In past I have faced problem with manually assigned mount points.
Quote:Can you cut and paste the two urls here?
Attached the new photo. Pasting urls:
Directory Path
/run/user/1000/gvfs/sftp:host=abc.xxx.yyy.edu,user=obama/home/obama/git
GIT PATH
/run/user/1000/gvfs/sftp:host=abc.xxx.yyy.edu,user=obama/home/obama/git/SOME_PIPELINE/.git
/run/user/1000/gvfs/sftp:host=abc.xxx.yyy.edu,user=obama/home/obama/git/TOOLX/.git
Thanks
Bade
[Updated on: Tue, 04 November 2014 02:24] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03296 seconds