Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Remote GIT Repository
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Remote GIT Repository

DennisDDennisD Member
edited March 2015 in Help

Does somebody know a good tutorial about how to configure a GIT remote repository on Debian? I want to use this remote repository to push code changes in Microsoft Visual Studio directly to my server from where I can then compile and execute it.

Thanks! :)

Comments

  • Gogs Is written in go, the end result being that you only have a single binary that you need to copy and paste and it works on BSD, Linux and Windows. Installation guide

    Otherwise there is cgit.

  • @rawrwriter said:
    Gogs Is written in go, the end result being that you only have a single binary that you need to copy and paste and it works on BSD, Linux and Windows. Installation guide

    Otherwise there is cgit.

    Gogs looks very nice, but I kinda just need the core functionality. I don't need a UI or anything.

  • cassacassa Member

    git init --bare myrepo.git

    Then you can clone it using ssh

  • @cassa said:
    git init --bare myrepo.git

    Then you can clone it using ssh

    Any tutorial or more information on that? I also need to create a repo without any branches, Microsoft Visual Studio will create that.

  • cassacassa Member

    @DennisD said:
    Any tutorial or more information on that? I also need to create a repo without any branches, Microsoft Visual Studio will create that.

    That were all the steps :p
    http://rogerdudler.github.io/git-guide/

  • Alright, so how do I make it accessible from the internet so I can push changes from MVS.

  • @DennisD said:
    Alright, so how do I make it accessible from the internet so I can push changes from MVS.

    Setup an SSH server and use ssh://[email protected]:/path/to/myproject.git as the remote origin.
    git doesnt require anything special to work that way, if you want to serve it through http(s) or use the git protocol (ssh with less overhead) you need to do more work.

    If you want it to work like github you need to create a user account called git and give it a home directory (the /path/to part) then you can use ssh://[email protected]:myproject.git

  • DennisDDennisD Member
    edited March 2015

    @rawrwriter said:

    Unfortunately Windows Visual Studio doesn't support SSH, so I have to serve it through http(s) or the git protocol. Any tutorials on that?

  • @DennisD said:
    Unfortunately Windows Visual Studio doesn't support SSH

    -1 microsoft, really.

    This guide looks good Unfortunately it looks like you have to add to your apache httpd.conf file and add users to a .htpasswd file for each repo.

  • DennisD said: Unfortunately Windows Visual Studio doesn't support SSH, so I have to serve it through http(s) or the git protocol. Any tutorials on that?

    Just the basic stuff (local), VS uses libgit2 - a pure C implementation of the Git. libgit2 doesn't support SSH yet (stable builds). However, since basic SSH support has been merged into libgit2 recently SSH support in VS 2015 looks promising.

  • @rawrwriter said:

    Thanks for the tutorial. I have done everything as described and all the tests have passed, but when I try to sync it with Visual Studio it get a 404 (not found) error for some reason, any idea?

Sign In or Register to comment.