git push一个文件夹_git – 仅将一个文件夹推送到远程备份

我使用

Git 1.7.4.1.我想将我在一个文件夹上的提交推送到我的远程备份.如何仅将更改从一个文件夹推送到我的远程备份?我发现的所有文档只列出了如何推动整个回购

davea-mbp2:systems davea$git push origin trunk

Password:

To http://dalvarado@mydomain.com/systems.git

! [rejected] trunk -> trunk (non-fast-forward)

error: failed to push some refs to 'http://dalvarado@mydomain.com/systems.git'

To prevent you from losing history, non-fast-forward updates were rejected

Merge the remote changes (e.g. 'git pull') before pushing again. See the

'Note about fast-forwards' section of 'git push --help' for details.

我被警告的冲突不适用于我要推送的文件夹.任何帮助是赞赏, – 戴夫


版权声明:本文为weixin_33672838原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。