1. 程式人生 > >解決eclipse中git push一直需要輸入遠端push地址的問題

解決eclipse中git push一直需要輸入遠端push地址的問題

在eclipse中使用git的時候,前一次push完之後,再push一次時,總會又出現讓你重新填寫push地址。
解決辦法:
在這裡插入圖片描述

在git配置檔案中進行如下配置:

[core]
	symlinks = false
	repositoryformatversion = 0
	filemode = false
	logallrefupdates = true
[gui]
	wmstate = normal
	geometry = 841x483+265+85 189 218

[remote "origin"]
    url = https://git.oschina.net/xxxx/專案名.git
    fetch = +refs/heads/*:refs/remotes/origin/*
	

這樣就不用每次都輸入專案地址了