Я вошел на свой сервер и создал репо с помощью команд:
mkdir project.git
cd project.git
git init --bare
На моем локальном компьютере я затем выполняю:
git clone server@server:/path/to/repos/project
, который, кажется, работает. Однако, если я перехожу в папку, я получаю сообщения об ошибках pull
, например:
git pull
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.
и
git status
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
nothing to commit, working tree clean
и
touch test.txt
git commit -am "test file"
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
Untracked files:
test.txt
nothing added to commit but untracked files present