Git “does not appear to be a git repository” ip and port instead of domain?

后端 未结 2 1514
南方客
南方客 2021-02-04 04:06

I\'m trying to commit my first Git repository to a gitlab instance, which I\'ve set up on a debian-VM. Everything is going to happen via local network. The following commands ar

2条回答
  •  梦如初夏
    2021-02-04 04:54

    use this format:

    git remote add origin ssh://git@xxx.xxx.xxx.xxx:1337/Matt/test.git

    user@host:[port]/path in most cases, we omit the port and it looks like this: user@host:/path ....

提交回复
热议问题