从社区拉下来库后,再推送代码到gerrit时报错:
Compressing objects: 100% (29435/29435), done.
Writing objects: 100% (145288/145288), 35.93 MiB | 10.71 MiB/s, done.
Total 145288 (delta 100354), reused 141769 (delta 97288)
remote: Resolving deltas: 100% (100354/100354)
remote: Counting objects: 145288, done
remote: Processing changes: refs: 1, done
remote: /usr/local/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a release (2.7.7+) that supports hmac.compare_digest as soon as possible.
此时git log内容太多,需要分段推送才行;
1、git log查看所有提交记录
git log > test.txt \\将log记录放到test.txt内
2、查看test.txt内容,可找到一条条如下内容,然后将所有commit分段,通过git push ssh://用户名@自己gerrit地址(sh://用户名@xxxx.xxx.com.cn:端口号/tecs/vmware-nsx) HEAD:refs/c94678413423f6755dbabe9a7febe458408fb937(git log 内commit-id)/branch(分支)
commit c138dcfdda190304054b8dc8430403f636cfc1fe
Author: Abhishek Raut <[email protected]>
Date: Mon Feb 22 01:47:36 2016 -0800
git 分段推送到库
猜你喜欢
转载自blog.csdn.net/llxx1234/article/details/104677202
今日推荐
周排行