I have been developing small utilities for use in my group via PyCharm, and fumbling my way around git VCS locally. However, I want/need to create a separate git repo so that others in my group can also put their own work under VCS, as well as participate in and enhance what I’m doing. As I understand it, this is considered a remote or upstream repo. I have two main projects, one for the utilities (UTILS_DEV) and one for a library I’ve turned into an installable package (MY_FUNCTIONSLIB) so that these functions can be used by other programs, and by other people. They are each stored under /export/dsl/ in separate directories, with their own local git repos. The /export directory is one which contains user directories, and is mounted to each server in our organization, so data is accessible on all machines.
Based on what Ive been able to find, I installed git on our group’s server, created a ‘git’ user, and cloned one of my existing local project repos into this user’s directory (run on the group server):
/home/git/git_repo/:> git clone /export/dsl/UTILS_DEV
This created the UTILS_DEV directory inside of git_repo, and under that what appeared to be the project structure and a .git repo in its subdirectory. Running git status
seems to show it is in order. I have run chgrp to ensure that the group setting on the git user home and all subdirectories is ‘staff’ – all user IDs re part of that group.
In PyCharm, though, I seem to be unable to set up the remote repo. I open the local copy of the project (in /export/dsl/UTILS_DEV), and then go to Define Remotes in the git menu. I input the name ‘origin’ and the URL as ‘ssh://dsl@group-server/home/git/git_repo/UTILS_DEV’. It appears to fail – I get returned to the same dialog, but get no error, and it will not save. I can otherwise ssh to this machine (‘ssh dsl@group-server’) without error from a PowerShell prompt on my local PC.
The intent was to push the UTILS_DEV project up to the group repo, so that it would be visible to others. Then I was planning on pushing the MY_FUNCTIONSLIB project to the same repo, as a separate project. I’m not sure that’s the correct thing to do, but I can’t even get to the point of making that mistake if I can’t connect to the remote server. What am I missing (either in the specific problem or the general approach)?