A. To specify credentials individually for each remote

  1. Open Git repositories view,
  2. open "Remotes > origin > <your push url>"
  3. click "Change Credentials..."

(From User Guide - Resource Context Menu)

B. To specify credentials per server

If you want to access multiple repositories on the same server without providing the same credentials multiple times, you may use .netrc. With this, eGit will use the configuration you provide.

  1. Create a text file called .netrc (_netrc in Windows) in the user home directory.
  2. Add content to the file in this form:
    machine my.server1.com
login yourUserName
password yourPassword machine my.server2.com
login yourUserName
password yourPassword

The Stash documentation contains more information about .netrc

Security issue The problem with using .netrc this way is that the password is visible in plain text. Refer to this answer in Stackoverflow to solve that problem.

最新文章

  1. CSS系列——前端进阶之路:初涉Less
  2. bash/shell编程学习(1)
  3. Linux守护进程
  4. ThinkPHP3.2.3 Nginx 下 URL_MODEL 的配置
  5. eclipse Ctrl+1 没反应
  6. 2013年最好的Python开源项目汇总
  7. 3DMax的OFusion插件使用问题
  8. nyoj 228 士兵杀死(五岁以下儿童)【树状数组】
  9. MVC中的Repository模式
  10. MVC4
  11. 一步一步学习Vue(六)
  12. Java并发之线程
  13. IIS部署WCF报 无法读取配置节“protocolMapping”,因为它缺少节声明
  14. Linux进程管理 - ps,top,pstree,signal,kill,killall举例演示
  15. Supervisor配置
  16. OpenCV神技——人脸检测,猫脸检测
  17. 数据库 -- mysql支持的数据类型
  18. Haskell语言学习笔记(19)File IO
  19. 20155232《网络对抗》Exp7 网络欺诈防范
  20. Oracle的执行计划(来自百度文库)

热门文章

  1. centos7 配置vnc
  2. clean code meaningful names
  3. Android---组件篇---Handler的使用(1)[转]
  4. [ACM_模拟] ZJUT 1155 爱乐大街的门牌号 (规律 长为n的含k个逆序数的最小字典序)
  5. Atitit.guice3 ioc 最佳实践 o9o
  6. 每天一个linux命令(4):mkdir命令
  7. Fiddler 修改返回内容 OnBeforeResponse 无效 没用
  8. js高仿QQ消息列表左滑功能
  9. hibernate(二)一级缓存和三种状态解析
  10. HTML5 &lt;a&gt;标签的ping属性用法