使用本地文件进行 git 版本控制
好的,我在名为 mywebsite
的文件夹中有一个项目,该项目位于我的 mac 上的文档文件夹中。如何使用 git 对该文件夹进行版本控制?
每次我尝试某件事时,我都会遇到某种致命错误,现在这真的很烦人,你能帮忙吗?
我先执行 git init,然后再执行 mkdir,然后我尝试添加和克隆文件,但没有成功。
git init
git mkdir mywebsite
cd mywebsite
git clone file://localhost/Users/me/Documens/sites/mywebsite
fatal '/Users/me/Documens/sites/mywebsite' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
请帮忙!
Ok I have a project in a folder called mywebsite
which is located in my documents folder on my mac. How do I use git to version control this folder??
Every time I try something I end up with a fatal error of some sort and it's really annoying me now, can you help?
I do git init
, then mkdir
and then I've tried adding and cloning the files to no avail.
git init
git mkdir mywebsite
cd mywebsite
git clone file://localhost/Users/me/Documens/sites/mywebsite
fatal '/Users/me/Documens/sites/mywebsite' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在“
mywebsite
”中已有文件:则执行
git status
来查看需要添加的内容。如果您还没有任何文件,您可以:
If you have already files in '
mywebsite
':then do a
git status
to see what needs to be added.If you haven't any file yet, you can: