git能夠add to index-->commit。但在pull的時候出現: org.eclipse.jgit.api.errors.transportexception。
解決的方法:
Eclipse windows-->preferences-->general-->security-->secure storage-->contents-->GIT.
選中ssh后點擊delete。
重新啟動Eclipse就能夠了。
附上一個stackoverflow的解決方法:http://stackoverflow.com/questions/3601805/auth-failed-error-with-egit-and-github。