git-merge with repository on local filesystem

喜你入骨 提交于 2019-12-03 10:48:46
Jakub Narębski

You need to use git pull with repository, not git merge (which is for branches):

git pull ../gitosis-admin-old/

You might need to select a branch in remote to merge, e.g.:

git pull ../gitosis-admin-old/ master

If you need to do this merge only once, then using git remote add like in jamessan answer is unnecessary work. On the other hand if you would be revisiting the remote (pulling more than one time), this solution would be better than using git pull <location> <branch>.

You need to create a remote for that repository and then fetch & merge (or simply pull) from there.

git remote add admin-old file://$HOME/gitosis-admin-old
git pull admin-old
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!