eclipse中代码push到github每次要输入github仓库地址
2017-08-26 09:58
211 查看
问题描述:每次想将项目代码push到远程仓库的时候,都需要location指定github仓库的地址,十分麻烦。
方式一:
windows->preferences->Team->Git->Configuration->Repository setting->add Entry
输入key:remote.url
输入value:github.com:XXX/XXX.git
方式二:
windows->preferences->Team->Git->Configuration->Repository setting->Repository下拉选择你的项目->open
打开你的git配置文件
文件改变如下:
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote]
url = github.com:XXX/XXX.git
提示:要避免每次输入github账号和密码,Store in Secure Store选项打上勾。
总结:这两种方式其实本质上是一样的,都是改变了git配置文件,在需要push的时候eclipse会自动去读取配置文件,避免了每次都手动输入的尴尬。
方式一:
windows->preferences->Team->Git->Configuration->Repository setting->add Entry
输入key:remote.url
输入value:github.com:XXX/XXX.git
方式二:
windows->preferences->Team->Git->Configuration->Repository setting->Repository下拉选择你的项目->open
打开你的git配置文件
文件改变如下:
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote]
url = github.com:XXX/XXX.git
提示:要避免每次输入github账号和密码,Store in Secure Store选项打上勾。
总结:这两种方式其实本质上是一样的,都是改变了git配置文件,在需要push的时候eclipse会自动去读取配置文件,避免了每次都手动输入的尴尬。
相关文章推荐
- Eclipse与GitHub的整合(一)——本地Git仓库中的代码push至GitHub
- push代码到github时,每次都要输入用户名和密码的问题
- git push github 远程仓库 要求每次输入账号密码问题
- github每次push代码时都要输入用户名和密码的解决方法
- push代码到github每次输入用户名和密码
- eclipse中push项目到github每次都要输地址
- Git本地仓库push至GitHub远程仓库每次输入账户密码问题解决
- 【GitHub】解决每次push代码到github都需要输入用户名和密码的方法
- push代码到github每次输入用户名和密码
- push代码到github每次输入用户名和密码
- push代码到github时,每次都要输入用户名和密码的问题
- 向github push代码时免重复输入密码的方法
- push到github时,每次都要输入用户名和密码的问题
- (转载)将Xcode的本地代码push到github仓库上,同时适用于命令行bash
- 使用命令创建github代码仓库,push本地仓库到github远程代码仓库
- Github:在eclipse中使用git clone 别人共享在Github的代码和上传到自己的仓库!
- github常遇问题 push到github时,每次都要输入用户名和密码的问题
- 在Linux Mint13下用Eclipse push代码到github
- push到github时,每次都要输入用户名和密码的问题
- push到github时,每次都要输入用户名和密码的问题