初次使用git遇到的问题

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lelewang123/article/details/76098343

步骤:
1.在桌面上建立一个文件夹git-test,在该文件夹下建立一个.txt文件,名为readme。

2.选中该文件,右键点击git bush,用命令行操作。

3.git init 用git控制该文件,这时候,该文件夹里便会出现一个隐藏的.git文件夹。

4.git add readme.txt

5.git commit -m "add files"
若出现 please tell me who are you.等问题时,根据提示,配置账号名(github)和邮箱。配置完之后可以用 git config来看是否配置成功。

6.建立与远端服务器的联系。

ssh-keygen -t rsa -C "13325479002@163.com"

在github的SSH中新建,将本地生成的密钥复制过去。

7.git remote add origin git@github.com:sivartTravis/git_test.git

8.git push -v origin master

展开阅读全文

初次使用SSH遇到问题

03-14

我搞了很久了,希望大家帮忙看下,错误提示如下rnrnrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2009-3-14 19:30:43 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datasSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPoolrnCaused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPoolrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)rn at java.lang.Class.getConstructor0(Class.java:2640)rn at java.lang.Class.getDeclaredConstructor(Class.java:1953)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:759)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:724)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)rn at java.lang.Thread.run(Thread.java:595)rn2009-3-14 19:30:43 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2009-3-14 19:30:43 org.apache.catalina.core.StandardContext startrn严重: Context [/online_edu] startup failed due to previous errorsrn2009-3-14 19:30:43 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn 论坛

没有更多推荐了,返回首页