git remote update origin --prune // 更新本地远程分支
git reset --soft HEAD^ // 撤销最近一次的commit
git reset --soft HEAD^ // 退回已经commit但没push的代码,保留已更改代码
背景图片铺满全屏,记得加个斜杠
background: url() no-repeat center / cover
@keyup.enter.native="searchPortal" // 输入框回车进行动作
object-fit: cover; // 图片自适应,有放大缩小的效果
array = array.concat(array.splice(0, 1)); // 把数组的第一个对象移到最后
await Promise.all(xxx.map(async item => {
// 将namelist表里的事件迁移到新表里
await 同步操作
}))
默认情况下命令git pull等价于命令git pull --merge,
等价于命令git fetch和git merge 。
即先fetch远程分支到本地,然后进行merge操作。
而命令git pull --rebase等价于命令git fetch和git rebase。
先fetch远程分支到本地,然后进行rebase操作。