Git:用消息推送到远程存储库 [英] Git: Push to a remote repository with a message
问题描述
我的公司正在将iRise用于原型设计,并且缺少任何版本(除非使用不同的文件名称=版本来复制您的文件)。无论如何,我们使用Git来进行版本控制,因为这里的典型iRise用户将是图形/网页设计师,我希望尽可能自动化该过程。我有一个运行AppleScript的热文件夹,它将推送到远程存储库,但我不知道如何添加消息...
git push TestProject master
尝试
git push TestProject master -m'message'
但是抛出一个开关错误,并显示一个选项列表,-m不是其中之一...
这是可能的,或者你必须首先在本地提交然后推送那到遥控器和消息将附加它?
您将不得不做一个提交(添加文件后)
git commit -m'message'
然后按:
git push TestProject master
您无法将消息关联到推送。
My company is incorporating iRise for prototyping and it lacks any kind of versioning (unless making copies of your files with different file names = versioning). Anyway, we're using Git for our version control and since the typical iRise user here will be a graphic/web designer I want to automate the process as much as possible. I have a hot folder running an AppleScript that will push to a remote repository but I'm not sure how to add a message...
git push TestProject master
tried
git push TestProject master -m 'message'
but threw a switch error and showed a list of options, -m not being one of them...
is this possible or do you have to commit locally first and then push that to the remote and the message will be attached with it?
You will have to do a commit ( after adding files)
git commit -m 'message'
and then push:
git push TestProject master
You cannot associate a message to the push.
这篇关于Git:用消息推送到远程存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!