Git 服务器 运行 Windows 7
Git server running on Windows 7
我想为我的团队制作一些演示,展示本地和远程 Git
分支之间的交互用例,并模拟多开发人员团队合作环境。为了避免创建新的 GitHub
(这是我们用于远程的)帐户,也为了避免用演示假人弄乱远程,我宁愿在我的 Windows 7
笔记本电脑上模拟远程服务器并推送从我当地的分支机构那里,与不同的用户帐户相关联,它们也都在我的笔记本电脑上。 IOW,在 Windows 7 笔记本电脑上模拟 Git 远程服务器。这可能吗?如何实现?
只需使用local protocol,并将文件路径指定为远程。无论操作系统如何,它都应该工作。在gitbash里面,你可以做
git init .
git remote add origin /path/to/remote/directory/on/localhost
# Add some stuff
git push origin master
我想为我的团队制作一些演示,展示本地和远程 Git
分支之间的交互用例,并模拟多开发人员团队合作环境。为了避免创建新的 GitHub
(这是我们用于远程的)帐户,也为了避免用演示假人弄乱远程,我宁愿在我的 Windows 7
笔记本电脑上模拟远程服务器并推送从我当地的分支机构那里,与不同的用户帐户相关联,它们也都在我的笔记本电脑上。 IOW,在 Windows 7 笔记本电脑上模拟 Git 远程服务器。这可能吗?如何实现?
只需使用local protocol,并将文件路径指定为远程。无论操作系统如何,它都应该工作。在gitbash里面,你可以做
git init .
git remote add origin /path/to/remote/directory/on/localhost
# Add some stuff
git push origin master