GIT/node使用

一、 为不同域名的库自动保存不同的用户名和密码

比如 公司的库是 http://source.sohu.com,另一个是 http://www.github.com,命令行中分别两个命令就搞定了

git config --global credential.http://source.sohu.com.helper store
git config --global credential.http://www.github.com.helper store

 

Git命令行支持粘贴,右键-option

 

 

二、nrm的使用

  1. 安装nrm: npm install nrm -g
  2. nrm add jd http://npm.jd.com
  3. nrm use jd
  4. nrm ls 可以列出所有的源

 

三、GIT 单文件切换到某个版本

  1. git checkout xx.js
  2. git reset --hard  106bc27

posted on 2015-10-15 16:17  snandy  阅读(1642)  评论(0编辑  收藏  举报