GIT/node使用

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

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

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

 

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

 

 

2、nrm的使用bash

  1. 安装nrm: npm install nrm -g
  2. nrm add jd http://npm.jd.com
  3. nrm use jd
  4. nrm ls 能够列出全部的源

 

3、GIT 单文件切换到某个版本命令行

  1. git checkout xx.js
  2. git reset --hard  106bc27
相关文章
相关标签/搜索