zoukankan      html  css  js  c++  java
  • 关于git提交、还原使用

    1.本地修改,未提交到本地仓库,想要恢复到修改前

    右键这个文件-team-show local hostory -找到某一版本-右键-get Contents 即可恢复到某一版本

    2. 命令:git remote -v

     cd 到 git 项目目录下执行:git remote -v

         origin http://****/AA/a.git (fetch)

         origin http://****/AA/a.git (push)

    3.代码运行命令:

      dos:  mvn spring-boot:run

      eclipse:spring-boot:run

      ====================================

    问题: 在 eclipse: mvn  spring-boot:run 执行这条命令出错,最后去掉  mvn 在执行 OK!

    [INFO] Scanning for projects...

    [INFO]                                                                         

    [INFO] ------------------------------------------------------------------------

    [INFO] Building qianke 0.1

    [INFO] ------------------------------------------------------------------------

    [INFO] ------------------------------------------------------------------------

    [INFO] BUILD FAILURE

    [INFO] ------------------------------------------------------------------------

    [INFO] Total time: 0.200 s

    [INFO] Finished at: 2016-11-04T15:39:51+08:00

    [INFO] Final Memory: 9M/309M

    [INFO] ------------------------------------------------------------------------

    [ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

    [ERROR] 

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR] 

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

  • 相关阅读:
    Linux时间子系统之一:clock source(时钟源)
    已知二叉树的前序遍历和中序遍历,如何得到它的后序遍历?
    Linux SPI总线和设备驱动架构之四:SPI数据传输的队列化
    Linux SPI总线和设备驱动架构之三:SPI控制器驱动
    Linux SPI总线和设备驱动架构之二:SPI通用接口层
    Linux SPI总线和设备驱动架构之一:系统概述
    C语言文件操作详解
    揭开网络编程常见API的面纱【上】
    利用ps指令查看某个程序的进程状态
    内存管理
  • 原文地址:https://www.cnblogs.com/liangxinxinbo/p/6031095.html
Copyright © 2011-2022 走看看