是否有相反的命令来导入压缩文件的git存档 [英] Is there an opposite command to git archive for importing zip files

查看:124
本文介绍了是否有相反的命令来导入压缩文件的git存档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的本地工作流程倾向于使用一系列zip文件作为本地源代码控制,然后将主要修订形式化为大型公司SCM系统。我正在尝试将git作为一种更好的本地SCM方法。目前的工作流程对于我们的小团队非常有效,特别是当测试机器不在网络中时,由于zip传输很容易,所以我需要能够配合这两种方法。



是否有git命令可以导入项目zip文件并可能提交?

或者是手动检查本地工作目录/分支干净的情况 git status ,删除所有当前内容 git rm * ,将zip文件解压到目录中,添加所有的 git add。,最后提交 git commit -a -mfilename.zip 。我们正在研究Windows,所以最大限度地减少错误的机会是非常重要的,所以命令越少越好!



这至少会让现有的用户决定何时做出git开关,而仍然得到repo和运行。



有关合适的命令或脚本的任何建议?

解决方案

为什么不打算使用你的问题中提到的所有命令来取消存档的git别名。


Our local workflow tends to use a sequence of zip files as the local 'source control' before major revisions are formalised into the 'big' company SCM system. I'm trying to introduce git as a better local SCM method. The current workflow is quite effective for our small team, particularly as test machines are off net, as zip transfer is easy, so I need to be able to dovetail the two methods.

Is there a git command(s) that will import a project zip file and perhaps commit it?

Or is it a case of manually checking that the local working directory/branch is clean git status, remove all current content git rm *, unzip the zip file into the directory, add all git add ., and finally commit git commit -a -m "filename.zip". We are working on Windows, so minimising opportunities for mistakes is important, so the fewer commands the better!

This will at least allow reticent existing users to decide when to make the git switch, while still getting the repo up and running.

Any suggestions on suitable commands or scripts?

解决方案

Why dont you crate a git alias for unarchive which runs all the commands you mentioned in your question.

这篇关于是否有相反的命令来导入压缩文件的git存档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆