git remote add origin https://github.com/jinan5694/learngit.git
git push origin master
git branch dev
git checkout dev
// or
git checkout -b dev
git branch
git checkout branch_name
git merge <branch_name>
git branch -d <branch_name>
// 这样合并可以保留提交点
git merge --no-ff -m <message> <branch_name>
// save
git stash
// query
git stash list
// reset
git stash apply
git stash drop
// reset and remove
git stash pop
git branch -d <branch_name>
git branch -D <branch_name>
git clean -n
git clean -f
git clean -fd
// comment test
function isDict (item) {
if (item.leaf) {
return false
} else {
const children = item.children
if (children && children.length) {
const child = children[0]
if (child.leaf) {
return true
}
}
return false
}
}
// 覆盖menu样式
$height-submenu: 50px;
.el-menu--collapse {
.el-menu-item,
.el-submenu .el-submenu__title {
height: 64px;
padding: 0 !important;
color: #666;
}
.is-active {
&.el-menu-item,
&.el-submenu .el-submenu__title,
&.el-submenu .el-submenu__title .icon {
color: $color-primary;
}
}
}
.el-menu--popup {
.el-menu-item {
height: $height-submenu;
line-height: $height-submenu;
}
}
// 覆盖menu样式 - end ^_^