background picture of the home page

hey,欢迎来到ska的编程日记

为项目创建maven包装器

在电脑没有maven的情况下 curl -Nkl https://raw.githubusercontent.com/takari/maven-wrapper/master/mvnw | bash 电脑有maven的情况下 mvn wrapper:wrapper

thumbnail of the cover of the post

Linux创建虚拟内存(交换空间)

sudo fallocate -l 8G /swapfile # 设置权限 sudo chmod 600 /swapfile # 格式化为交换分区 sudo mkswap /swapfile sudo swapon /swapfile # 验证结果 free -h 将上面的交换空间持久

thumbnail of the cover of the post

git切换账号推送仓库

# 先移除现有的 origin git remote remove origin # 添加带有用户名的地址 git remote add origin https://该仓库拥有者@github.com/仓库路径.git # 再次尝试推送 git push -u origin main

thumbnail of the cover of the post

git学习总结

分支树 git log --graph --oneline --all --decorate 设置别名:git tree git config --global alias.tree "log --graph --oneline --all --decorate" 分支 当前分支 git branc

thumbnail of the cover of the post