git新建项目后的内容
Git 全局设置
git config --global user.name ""
git config --global user.email ""
创建一个新仓库
git clone http://ip:port/group/project.git
cd corn-monitor
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main
推送现有文件夹
cd existing_folder
git init --initial-branch=main
git remote add origin http://ip:port/group/project.git
git add .
git commit -m "Initial commit"
git push -u origin main
推送现有的 Git 仓库
cd existing_repo
git remote rename origin old-origin
git remote add origin http://ip:port/group/project.git
git push -u origin --all
git push -u origin --tags
修改host访问github
有个github520项目会更新host,host内容更新地址#
项目地址
GeoServer的默认用户名和密码
用户名:admin
密码: geoserver
css inline元素对齐
使用vertical-align
scss常用
@mixin compound {
@include highlighted-background;
@include header-text;
}
@mixin highlighted-background { background-color: #fc0; }
@mixin header-text { font-size: 20px; }
@mixin apply-to-ie6-only {
* html {
@content;
}
}
@include apply-to-ie6-only {
#logo {
background-image: url(/logo.gif);
}
}
/*编译后*/
* html #logo {
background-image: url(/logo.gif);
}
$grid-width: 40px;
$gutter-width: 10px;
@function grid-width($n) {
@return $n * $grid-width + ($n - 1) * $gutter-width;
}
#sidebar { width: grid-width(5); }
vue v-for遍历对象的顺序
<li v-for="(value,key,index) in user"> 角标:{{index}}------ 键名: {{key}} ------ 值:{{value}} </li>
本文涵盖了Git的全局设置、新仓库创建、现有文件夹和仓库的推送,以及CSS和SCSS的相关知识。讲解了如何使用Git进行版本控制,并分享了Vue中v-for遍历对象的顺序以及JavaScript数组reverse方法的注意事项。同时,提到了GeoServer的默认用户名和密码,以及修改host访问GitHub的方法。
2000

被折叠的 条评论
为什么被折叠?



