Skip to content

Instantly share code, notes, and snippets.

@fengminchao
fengminchao / git_toturial
Last active November 7, 2019 02:18 — forked from guweigang/git_toturial
git命令大全
## git 常用命令
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
function encodeBase64(s) {
var b = new Buffer(s);
return b.toString('base64');
}
function decodeBase64(s) {
var b = new Buffer(s, 'base64')
return b.toString();
}
@fengminchao
fengminchao / 0_reuse_code.js
Created June 1, 2016 12:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console