This is a note for what I have encountered with deploying code using git on win7.
I will tell you my solutions, but the most important method is googling.
Hope you can done successfully! Gook Luck!
helpful links:
article 1: (1)http://nathanj.github.io/gitguide/tour.html
article 2: (2)http://guides.beanstalkapp.com/version-control/git-on-windows.html
tools links :
tool 1: (1)http://code.google.com/p/msysgit/downloads/list
I choosed Git-1.9.0-preview20140217.exe
tool 2: (2)http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
choose putty-0.60-installer.exe
I started from article 1 and downloaded tool 1. Everything goes well until the section
"Pushing to a remote server". Next, I followed article 2.
If you plan to use the PUTTY like me, you need scrool down a bit far away from the top
to meet the section "Installing PuTTY".For Checking you can access your github , there is
one alternative.
Here the alternative goes:
1. Generating a key pair
To do this you need to run Git Bash, which can be found in your start menu.
Run the command:
ssh-keygen -t rsa
It will ask for location and pass phrase. Accept the default location (usually
C:\Documents and Settings\username\.ssh\ or C:\Users\username\.ssh) by pressing
ENTER. After that, make sure to set a strong pass phrase for the key.
Now that the keys are generated, open the file id_rsa.pub (found in the
default location from the previous step) with a text editor. The contents
of this file is your new public key. If you copy it to your clipboard, you
can add it to your Github profile.(Account settings --> SSH Keys -->
Add SSH key)
2. Checking your connection.
Before trying to access your Github repository, check if the connection to
your remote repository works. Run the command:
ssh [email protected]
You should see the similiar result:
After you have connected to Github successfully, you can go back to the article 1.
Problem I have met:
1.Why cannot I push code to Github?
solution: launch the Pagent.exe. This is a backend authentication tool.
use Git on win7 ---from beginning to end
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
ggit (git gui) --- 開發記錄 (一)
sewerganger
2019-02-24 22:45:04
gitlab命令行使用(基礎篇)
cafebabe
2019-02-23 13:53:44
git/ TortoiseGit如何使用證書登錄
aaronzzq
2019-02-23 13:16:22
Flask 教程 第十八章:Heroku上的部署
天降攻城獅
2019-02-23 10:17:16
一個簡單的git應用教程
我爲楚狂
2019-02-23 00:33:46
eclipse中使用git
lwklwc
2019-02-23 00:29:43
Eclipse上安裝GIT插件EGit及使用
lwklwc
2019-02-23 00:29:41
Git使用
gao491852809
2019-02-23 00:20:05
Git 與 SVN對比詳解
dolunbu
2019-02-23 00:04:43
github代碼提交
mzcwlong
2019-02-23 00:00:21