最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】再次尝试用git上传BlogsToWordPress的代码到SourceForge中git仓库

Git crifan 2364浏览 0评论

【背景】

之前在:

【记录】尝试通过git把BlogsToWordPress的代码上传到SourceForge

中的折腾,没有成功用git上传BlogsToWordpress的代码到SourceForge的git仓库中。

而出现了错误:

【未解决】win7下cygwin下git push origin master出错:ssh: connect to host git.code.sf.net port 22: Connection timed out

且没有解决。

此处,再次,换个环境,但也是win7 x64 + Cygwin,再去试试在其下用git,能否成功上传代码。

【折腾过程】

1.继续参考:

https://sourceforge.net/p/blogstowordpress/code/

中的介绍和之前的:

【记录】尝试通过git把BlogsToWordPress的代码上传到SourceForge

去做类似的操作:

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ ls
BlogsToWordpress.py  libs       modifiedPostPattern_Baidu_serial_story.txt   modifiedPostPattern_againinput4.txt
cmd_example.txt      materials  modifiedPostPattern_Netease_againinput4.txt

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ pwd
/cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ ls
BlogsToWordpress.py  libs       modifiedPostPattern_Baidu_serial_story.txt   modifiedPostPattern_againinput4.txt
cmd_example.txt      materials  modifiedPostPattern_Netease_againinput4.txt

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ ls -lha
total 180K
drwx------+ 1 Administrators None    0 Aug 27 23:15 .
drwx------+ 1 Administrators None    0 Aug 27 23:15 ..
-rwx------+ 1 Administrators None  92K Aug 27 00:46 BlogsToWordpress.py
-rwx------+ 1 Administrators None  63K Aug 27 00:40 cmd_example.txt
drwx------+ 1 Administrators None    0 Aug 27 23:15 libs
drwx------+ 1 Administrators None    0 Aug 27 23:15 materials
-rwx------+ 1 Administrators None 1.1K Mar 13  2012 modifiedPostPattern_Baidu_serial_story.txt
-rwx------+ 1 Administrators None 1.2K Mar 16  2012 modifiedPostPattern_Netease_againinput4.txt
-rwx------+ 1 Administrators None 1.2K Mar 16  2012 modifiedPostPattern_againinput4.txt

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ git init
Initialized empty Git repository in /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress/.git/

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ git add .

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#       new file:   BlogsToWordpress.py
#       new file:   cmd_example.txt
#       new file:   libs/crifan/blogModules/BlogBaidu.py
#       new file:   libs/crifan/blogModules/BlogBlogbus.py
#       new file:   libs/crifan/blogModules/BlogCsdn.py
#       new file:   libs/crifan/blogModules/BlogDiandian.py
#       new file:   libs/crifan/blogModules/BlogNetease.py
#       new file:   libs/crifan/blogModules/BlogQQ.py
#       new file:   libs/crifan/blogModules/BlogRenren.py
#       new file:   libs/crifan/blogModules/BlogSina.py
#       new file:   libs/crifan/blogModules/BlogSohu.py
#       new file:   libs/crifan/blogModules/BlogTianya.py
#       new file:   libs/crifan/blogModules/BlogXXX.py
#       new file:   libs/crifan/crifanLib.py
#       new file:   libs/thirdparty/BeautifulSoup.py
#       new file:   libs/thirdparty/chardet/__init__.py
#       new file:   libs/thirdparty/chardet/big5freq.py
#       new file:   libs/thirdparty/chardet/big5prober.py
#       new file:   libs/thirdparty/chardet/chardistribution.py
#       new file:   libs/thirdparty/chardet/charsetgroupprober.py
#       new file:   libs/thirdparty/chardet/charsetprober.py
#       new file:   libs/thirdparty/chardet/codingstatemachine.py
#       new file:   libs/thirdparty/chardet/constants.py
#       new file:   libs/thirdparty/chardet/escprober.py
#       new file:   libs/thirdparty/chardet/escsm.py
#       new file:   libs/thirdparty/chardet/eucjpprober.py
#       new file:   libs/thirdparty/chardet/euckrfreq.py
#       new file:   libs/thirdparty/chardet/euckrprober.py
#       new file:   libs/thirdparty/chardet/euctwfreq.py
#       new file:   libs/thirdparty/chardet/euctwprober.py
#       new file:   libs/thirdparty/chardet/gb2312freq.py
#       new file:   libs/thirdparty/chardet/gb2312prober.py
#       new file:   libs/thirdparty/chardet/hebrewprober.py
#       new file:   libs/thirdparty/chardet/jisfreq.py
#       new file:   libs/thirdparty/chardet/jpcntx.py
#       new file:   libs/thirdparty/chardet/langbulgarianmodel.py
#       new file:   libs/thirdparty/chardet/langcyrillicmodel.py
#       new file:   libs/thirdparty/chardet/langgreekmodel.py
#       new file:   libs/thirdparty/chardet/langhebrewmodel.py
#       new file:   libs/thirdparty/chardet/langhungarianmodel.py
#       new file:   libs/thirdparty/chardet/langthaimodel.py
#       new file:   libs/thirdparty/chardet/latin1prober.py
#       new file:   libs/thirdparty/chardet/mbcharsetprober.py
#       new file:   libs/thirdparty/chardet/mbcsgroupprober.py
#       new file:   libs/thirdparty/chardet/mbcssm.py
#       new file:   libs/thirdparty/chardet/sbcharsetprober.py
#       new file:   libs/thirdparty/chardet/sbcsgroupprober.py
#       new file:   libs/thirdparty/chardet/sjisprober.py
#       new file:   libs/thirdparty/chardet/universaldetector.py
#       new file:   libs/thirdparty/chardet/utf8prober.py
#       new file:   materials/BlogsToWordpress.ico
#       new file:   modifiedPostPattern_Baidu_serial_story.txt
#       new file:   modifiedPostPattern_Netease_againinput4.txt
#       new file:   modifiedPostPattern_againinput4.txt
#

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ git commit -a -m "first add all blogstowordpress v17.7 files into git"
[master (root-commit) b537fed] first add all blogstowordpress v17.7 files into git
 Committer: U-NYBDHB7EB3XEHP6\Administrator <Administrator@PC-20130611GART.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email [email protected]

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 54 files changed, 29208 insertions(+), 0 deletions(-)
 create mode 100755 BlogsToWordpress.py
 create mode 100755 cmd_example.txt
 create mode 100755 libs/crifan/blogModules/BlogBaidu.py
 create mode 100755 libs/crifan/blogModules/BlogBlogbus.py
 create mode 100755 libs/crifan/blogModules/BlogCsdn.py
 create mode 100755 libs/crifan/blogModules/BlogDiandian.py
 create mode 100755 libs/crifan/blogModules/BlogNetease.py
 create mode 100755 libs/crifan/blogModules/BlogQQ.py
 create mode 100755 libs/crifan/blogModules/BlogRenren.py
 create mode 100755 libs/crifan/blogModules/BlogSina.py
 create mode 100755 libs/crifan/blogModules/BlogSohu.py
 create mode 100755 libs/crifan/blogModules/BlogTianya.py
 create mode 100755 libs/crifan/blogModules/BlogXXX.py
 create mode 100755 libs/crifan/crifanLib.py
 create mode 100755 libs/thirdparty/BeautifulSoup.py
 create mode 100755 libs/thirdparty/chardet/__init__.py
 create mode 100755 libs/thirdparty/chardet/big5freq.py
 create mode 100755 libs/thirdparty/chardet/big5prober.py
 create mode 100755 libs/thirdparty/chardet/chardistribution.py
 create mode 100755 libs/thirdparty/chardet/charsetgroupprober.py
 create mode 100755 libs/thirdparty/chardet/charsetprober.py
 create mode 100755 libs/thirdparty/chardet/codingstatemachine.py
 create mode 100755 libs/thirdparty/chardet/constants.py
 create mode 100755 libs/thirdparty/chardet/escprober.py
 create mode 100755 libs/thirdparty/chardet/escsm.py
 create mode 100755 libs/thirdparty/chardet/eucjpprober.py
 create mode 100755 libs/thirdparty/chardet/euckrfreq.py
 create mode 100755 libs/thirdparty/chardet/euckrprober.py
 create mode 100755 libs/thirdparty/chardet/euctwfreq.py
 create mode 100755 libs/thirdparty/chardet/euctwprober.py
 create mode 100755 libs/thirdparty/chardet/gb2312freq.py
 create mode 100755 libs/thirdparty/chardet/gb2312prober.py
 create mode 100755 libs/thirdparty/chardet/hebrewprober.py
 create mode 100755 libs/thirdparty/chardet/jisfreq.py
 create mode 100755 libs/thirdparty/chardet/jpcntx.py
 create mode 100755 libs/thirdparty/chardet/langbulgarianmodel.py
 create mode 100755 libs/thirdparty/chardet/langcyrillicmodel.py
 create mode 100755 libs/thirdparty/chardet/langgreekmodel.py
 create mode 100755 libs/thirdparty/chardet/langhebrewmodel.py
 create mode 100755 libs/thirdparty/chardet/langhungarianmodel.py
 create mode 100755 libs/thirdparty/chardet/langthaimodel.py
 create mode 100755 libs/thirdparty/chardet/latin1prober.py
 create mode 100755 libs/thirdparty/chardet/mbcharsetprober.py
 create mode 100755 libs/thirdparty/chardet/mbcsgroupprober.py
 create mode 100755 libs/thirdparty/chardet/mbcssm.py
 create mode 100755 libs/thirdparty/chardet/sbcharsetprober.py
 create mode 100755 libs/thirdparty/chardet/sbcsgroupprober.py
 create mode 100755 libs/thirdparty/chardet/sjisprober.py
 create mode 100755 libs/thirdparty/chardet/universaldetector.py
 create mode 100755 libs/thirdparty/chardet/utf8prober.py
 create mode 100755 materials/BlogsToWordpress.ico
 create mode 100755 modifiedPostPattern_Baidu_serial_story.txt
 create mode 100755 modifiedPostPattern_Netease_againinput4.txt
 create mode 100755 modifiedPostPattern_againinput4.txt

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ git remote add origin ssh://[email protected]/p/blogstowordpress/code

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$ git push origin master
ssh: Could not resolve hostname git.code.sf.net: Temporary failure in name resolution
fatal: The remote end hung up unexpectedly

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/SourceForge/git/BlogsToWordpress
$

结果很明显是出现了“Temporary failure in name resolution ”的错误:

【已解决】对于SourceForge的git去git push结果出错:ssh: Could not resolve hostname git.code.sf.net: Temporary failure in name resolution

2. 现在,由于多上传了一个文件,所以,接着打算去折腾:

【已解决】如何把git中的本地的改动(local changes)上传(upload/commit/push)到git服务器的仓库中

 

【总结】

至此,终于实现了:

将本地的代码,上传到SourceForge的git服务器中;

且对于本地的代码更新,可以再次上传更新到git服务器中了。

转载请注明:在路上 » 【记录】再次尝试用git上传BlogsToWordPress的代码到SourceForge中git仓库

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.177 seconds, using 22.13MB memory