gitmaven命令

张开发
2026/4/10 8:29:41 15 分钟阅读

分享文章

gitmaven命令
git命令git diff #查看差异git push origin feature/recover_pwd_bug #推送git commit -m ‘perf #重置密码逻辑优化git log #查看提交版本号git reset --hard 版本号 #本地回退到相应的版本git push origin 分支名 --force #远端的仓库也回退到相应的版本git add . #这一步如果只是修改commit message不用输入git commit --amend #输入修改后的commit message保存git push remote branch -f #若还没有推送到远端不用输入git show tag名称 查看打tag时的版本信息git checkout -b 新分支名 要检出的版本号 从要检出的版本中检出新分支报错Please move or remove them before you can switch branches.处理方案git clean -d -fx 注1. x 表示删除忽略文件已经对git来说不识别的文件2. d: 删除未被添加到git的路径中的文件3. f: 强制执行本地仓库和远程仓库关联cd existing_repogit remote add origin https://git.xxx.com/xxx.gitgit branch -M mastergit push -uf origin mastermaven命令mvn clean package -Dmaven.test.skiptruemvn spring-boot:run

更多文章