- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我的本地 GitHub 存储库有 C:\Users\my\Documents\GitHub,C:\wamp\www 是我在本地处理项目的地方Wamp 服务器。
什么是适合它们的设置?我应该告诉 Git 使用“www”作为我的本地存储库吗?这会将 localhost 与 Github 结合起来吗??
最佳答案
您可以简单地使用 git 的 --work-tree 或 --git-dir 参数来:
在 Github 文件夹中,但提到工作树是 www
cd C:\Users\my\Documents\GitHub
git --work-tree=C:\wamp\www status
或者在 www 文件夹中并提到 git 存储库在 Github 中
cd C:\wamp\www status
git --git-dir=C:\Users\my\Documents\GitHub\.git
另一种方法是在两者中都有一个 git 仓库,并从 www
pull Github
。
cd C:\wamp\www status
git add remote origin C:\Users\my\Documents\GitHub
git pull origin master
关于git - 我可以将我的本地 Github 存储库与 WAMP localhost 文件夹结合起来吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22953060/
我正在尝试执行 vagrant up 但一直遇到此错误: ==> default: IOError: [Errno 13] Permission denied: '/usr/local/lib/pyt
我在容器 div 中有一系列动态创建的不同高度的 div。 Varying text... Varying text... Varying text... Varying text.
通过 cygwin 运行 vagrant up 时遇到以下错误。 stderr: /bin/bash: /home/vagrant/.ansible/tmp/ansible-tmp-14872260
今天要向小伙伴们介绍的是一个能够快速地把数据制作成可视化、交互页面的 Python 框架:Streamlit,分分钟让你的数据动起来! 犹记得我在做机器学习和数据分析方面的毕设时,
我是 vagrant 的新手,正在尝试将第二个磁盘添加到我正在用 vagrant 制作的虚拟机中。 我想出了如何在第一次启动虚拟机时连接磁盘,但是当我关闭机器时 然后再次备份(使用 'vagrant
我是一名优秀的程序员,十分优秀!