Git 基础操作系列: 本地项目上传至git仓库(gitlab / github)

目标:

本地工程上传至github或gitlab上(后续以github为例), 并实现本地与远程仓库的关联性操作(提交/删除/修改/pull/push等基本操作).
‘’
一般由于项目是提前在本地开发/测试好后, 才想提交至remote repository中的, 这种操作方式比较繁琐.
‘’
一种变通的思路是, 可以在开发之前规划好, 在remote repository先提前创建项目地址, 然后克隆到本地开发/测试, 最后实现代码的上传处理(如add/commit/pull/push等).

准备工作:

  • 本地项目已完成
  • git环境

操作步骤:

一. 在github上创建public性质仓库(默认)

填写以下几项属性,完成repository的创建

- `Repository name,如springCoreReview`
- `Description(可选)`
- `勾选"Initialize the repository with a README"(养成好习惯)`
- `在"Add .gitignore"下拉选型中, 选择开发语言(可选)`
- 在"Add a license"下拉选型中, 选择软件授权证书类型(可选)

二. 本地项目初始化

- 1 找到项目物理目录

一般在IDEA中开发的项目, 希望能够在其文件目录中进行init的工作,可以右键项目名称springCoreReview --> “show in explorer”, 进入项目所在的物理目录, 并进入项目文件夹中.

- 2 打开命令行工具

因为本地已安装过git客户端, 在项目所在文件夹中右键选择"git bash here", 打开命令行工具.

- 3 执行本地项目初始化工作

$ git init
$ git add .
$ git commit -m “Project init”

- 4 关联本地与github远程仓库地址

$ git remote add origin https://github.com/liuwei0376/springCoreReview.git

- 5 推送本地代码至远程仓库的前置工作git pull

每次执行push前, 切记先pull一把

注意: 如果第一次推送前, 没有执行(git pull)操作, 一般会遇到如下问题:

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git push -u origin master
To https://github.com/liuwei0376/springCoreReview.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/liuwei0376/springCoreReview.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

产生这种问题的原因是, github上进行远程项目初始化时, 生成了README文件和.gitignore文件, 本地在push之前未执行pull操作, 将导致本地远程推送前不一致而产生冲突.

检查本地与远程关联的仓库:

$ git remote -v
origin  https://github.com/liuwei0376/springCoreReview.git (fetch)
origin  https://github.com/liuwei0376/springCoreReview.git (push)

如果没有执行git pull操作, 此时再使用$ git push -u origin master执行推送操作, 可能还会报如下错误:

$ git push -u origin master
To https://github.com/liuwei0376/springCoreReview.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/liuwei0376/springCoreReview.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.\

执行git pull 操作, 报如下错误:

$ git pull origin master
From https://github.com/liuwei0376/springCoreReview
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

解决方案:
$ git pull origin master --allow-unrelated-histories

- 6 推送本地代码至远程github仓库

$ git push -u origin master

三 完整操作样例&输出

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview
$ git init
Initialized empty Git repository in D:/IdeaProjects-6/springCoreReview/.git/

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git add .
warning: LF will be replaced by CRLF in .idea/compiler.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/misc.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/modules.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/uiDesigner.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/workspace.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in pom.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in springCoreReview.iml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in springMVCReview/springMVCReview.iml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in springMVCReview/web/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in springMVCReview/web/index.jsp.
The file will have its original line endings in your working directory.

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git commit -m "init project"
[master (root-commit) c580f67] init project
 157 files changed, 4921 insertions(+)
 create mode 100644 .idea/artifacts/springMVCReview_war_exploded.xml
 create mode 100644 .idea/compiler.xml
 create mode 100644 .idea/libraries/Maven__commons_logging_commons_logging_1_2.xml
 create mode 100644 .idea/libraries/Maven__mysql_mysql_connector_java_5_1_46.xml
 create mode 100644 .idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_4.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_aop_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_beans_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_context_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_core_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_expression_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_web_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Maven__org_springframework_spring_webmvc_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Spring_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/Spring_MVC_4_3_18_RELEASE.xml
 create mode 100644 .idea/libraries/log4j_1_2_17.xml
 create mode 100644 .idea/misc.xml
 create mode 100644 .idea/modules.xml
 create mode 100644 .idea/uiDesigner.xml
 create mode 100644 .idea/workspace.xml
 create mode 100644 ReadMe.txt
 create mode 100644 Spring4_core_tutorial_ROADMAP.png
 create mode 100644 lib/aopalliance-1.0.jar
 create mode 100644 lib/commons-logging-1.2.jar
 create mode 100644 lib/spring-aop-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-aspects-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-beans-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-context-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-context-support-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-core-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-expression-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-instrument-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-instrument-tomcat-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-jdbc-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-jms-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-messaging-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-orm-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-oxm-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-test-4.3.18.RELEASE.jar
 create mode 100644 lib/spring-tx-4.3.18.RELEASE.jar
 create mode 100644 log.out
 create mode 100644 pom.xml
 create mode 100644 springCoreReview.iml
 create mode 100644 springMVCReview/lib/log4j-1.2.17.jar
 create mode 100644 springMVCReview/lib/spring-web-4.3.18.RELEASE.jar
 create mode 100644 springMVCReview/lib/spring-webmvc-4.3.18.RELEASE.jar
 create mode 100644 springMVCReview/lib/spring-webmvc-portlet-4.3.18.RELEASE.jar
 create mode 100644 springMVCReview/lib/spring-websocket-4.3.18.RELEASE.jar
 create mode 100644 springMVCReview/springMVCReview.iml
 create mode 100644 springMVCReview/src/Beans.xml
 create mode 100644 springMVCReview/src/com/tutorialspoint/MainApp.java
 create mode 100644 springMVCReview/src/com/tutorialspoint/controller/HelloController.java
 create mode 100644 springMVCReview/src/com/tutorialspoint/controller/StudentController.java
 create mode 100644 springMVCReview/src/com/tutorialspoint/controller/WebController.java
 create mode 100644 springMVCReview/src/com/tutorialspoint/model/HelloWorld.java
 create mode 100644 springMVCReview/src/com/tutorialspoint/model/SpringException.java
 create mode 100644 springMVCReview/src/com/tutorialspoint/model/Student.java
 create mode 100644 springMVCReview/src/log4j.properties
 create mode 100644 springMVCReview/web/WEB-INF/HelloWeb-servlet.xml
 create mode 100644 springMVCReview/web/WEB-INF/classes/Beans.xml
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/MainApp.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/controller/HelloController.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/controller/StudentController.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/controller/WebController.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/model/HelloWorld.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/model/SpringException.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/com/tutorialspoint/model/Student.class
 create mode 100644 springMVCReview/web/WEB-INF/classes/log4j.properties
 create mode 100644 springMVCReview/web/WEB-INF/jsp/ExceptionPage.jsp
 create mode 100644 springMVCReview/web/WEB-INF/jsp/error.jsp
 create mode 100644 springMVCReview/web/WEB-INF/jsp/final.jsp
 create mode 100644 springMVCReview/web/WEB-INF/jsp/hello.jsp
 create mode 100644 springMVCReview/web/WEB-INF/jsp/index.jsp
 create mode 100644 springMVCReview/web/WEB-INF/jsp/result.jsp
 create mode 100644 springMVCReview/web/WEB-INF/jsp/student.jsp
 create mode 100644 springMVCReview/web/WEB-INF/pages/final.html
 create mode 100644 springMVCReview/web/WEB-INF/web.xml
 create mode 100644 springMVCReview/web/index.jsp
 create mode 100644 src/main/java/com/david/springcorereview/action/App.java
 create mode 100644 src/main/java/com/david/springcorereview/model/Homework.java
 create mode 100644 src/main/java/com/david/springcorereview/model/Student.java
 create mode 100644 src/main/java/com/david/springcorereview/util/CheckNowTime.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/HelloWorld.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p01_beanfactory/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p02_beanlifecycle/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p03_beanpostprocessor/InitHelloWorld.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p03_beanpostprocessor/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p04_inherit/HelloChina.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p04_inherit/HelloIndia.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p04_inherit/HelloWorld.java
 create mode 100644 src/main/java/com/toturialspoint/c01_IOC/s01_BeanFactory/p04_inherit/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p01_constructorDI/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p01_constructorDI/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p02_setterDI/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p02_setterDI/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p03_innerBean/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p03_innerBean/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p04_collectionDI/JavaCollection.java
 create mode 100644 src/main/java/com/toturialspoint/c02_DI/p04_collectionDI/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p01_byName/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p01_byName/SpellChecker.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p01_byName/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p02_byType/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p02_byType/SpellChecker.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p02_byType/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p03_byConstructor/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p03_byConstructor/SpellChecker.java
 create mode 100644 src/main/java/com/toturialspoint/c03_Autowired/p03_byConstructor/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p01_annoRequired/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p01_annoRequired/Student.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p02_annoAutowired/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p02_annoAutowired/SpellChecker.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p02_annoAutowired/TextEditor.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p02_annoAutowired/TextEditorAttrAutowired.java
 create mode 100644 src/main/java/com/toturialspoint/c04_annotation_config/p02_annoAutowired/TextEditorConstructorAutowired.java
 create mode 100644 src/main/java/com/toturialspoint/c05_AOP/p01_viaXML/Logging.java
 create mode 100644 src/main/java/com/toturialspoint/c05_AOP/p01_viaXML/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c05_AOP/p01_viaXML/Student.java
 create mode 100644 src/main/java/com/toturialspoint/c05_AOP/p02_viaAnnocation/Logging.java
 create mode 100644 src/main/java/com/toturialspoint/c05_AOP/p02_viaAnnocation/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c05_AOP/p02_viaAnnocation/Student.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p01_JdbcTemplate/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p01_JdbcTemplate/Student.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p01_JdbcTemplate/StudentDAO.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p01_JdbcTemplate/StudentJDBCTemplate.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p01_JdbcTemplate/StudentMapper.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p02_SimpleJdbcCall/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p02_SimpleJdbcCall/Student.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p02_SimpleJdbcCall/StudentDAO.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p02_SimpleJdbcCall/StudentJDBCTemplate.java
 create mode 100644 src/main/java/com/toturialspoint/c06_JDBC/p02_SimpleJdbcCall/StudentMapper.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p01_programme/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p01_programme/StudentDAO.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p01_programme/StudentJDBCTemplate.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p01_programme/StudentMarks.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p01_programme/StudentMarksMapper.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p02_declaration/MainApp.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p02_declaration/StudentDAO.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p02_declaration/StudentJDBCTemplate.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p02_declaration/StudentMarks.java
 create mode 100644 src/main/java/com/toturialspoint/c07_transaction/p02_declaration/StudentMarksMapper.java
 create mode 100644 src/main/resources/annotation/Beans_Annotation_@Autowired_attribute.xml
 create mode 100644 src/main/resources/annotation/Beans_Annotation_@Autowired_constructor.xml
 create mode 100644 src/main/resources/annotation/Beans_Annotation_@Autowired_settermethod.xml
 create mode 100644 src/main/resources/annotation/Beans_Annotation_@Required.xml
 create mode 100644 src/main/resources/aop/Beans_AOP_annocationFormat.xml
 create mode 100644 src/main/resources/aop/Beans_AOP_xmlFormat.xml
 create mode 100644 src/main/resources/applicationContext.xml
 create mode 100644 src/main/resources/autowired/Beans_Autowired_byConstructor.xml
 create mode 100644 src/main/resources/autowired/Beans_Autowired_byName.xml
 create mode 100644 src/main/resources/autowired/Beans_Autowired_byType.xml
 create mode 100644 src/main/resources/di/Beans_DI.xml
 create mode 100644 src/main/resources/ioc/Beans.xml
 create mode 100644 src/main/resources/ioc/Beans_defineInherit.xml
 create mode 100644 src/main/resources/jdbc/Beans_JDBCCall.xml
 create mode 100644 src/main/resources/jdbc/Beans_JDBCTemplate.xml
 create mode 100644 src/main/resources/transaction/Beans_declaration.xml
 create mode 100644 src/main/resources/transaction/Beans_programme.xml

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git remote add origin https://github.com/liuwei0376/springCoreReview.git

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git push -u origin master
To https://github.com/liuwei0376/springCoreReview.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/liuwei0376/springCoreReview.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git remote -v
origin  https://github.com/liuwei0376/springCoreReview.git (fetch)
origin  https://github.com/liuwei0376/springCoreReview.git (push)

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git fetch
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
warning: no common commits
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/liuwei0376/springCoreReview
 * [new branch]      master     -> origin/master

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master


Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git push -u origin master
To https://github.com/liuwei0376/springCoreReview.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/liuwei0376/springCoreReview.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git pull origin master
From https://github.com/liuwei0376/springCoreReview
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git pull origin master --allow-unrelated-histories
From https://github.com/liuwei0376/springCoreReview
 * branch            master     -> FETCH_HEAD
Merge made by the 'recursive' strategy.
 README.md | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 README.md

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$ git push -u origin master
Counting objects: 224, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (212/212), done.
Writing objects: 100% (224/224), 8.19 MiB | 115.00 KiB/s, done.
Total 224 (delta 71), reused 0 (delta 0)
remote: Resolving deltas: 100% (71/71), done.
Branch master set up to track remote branch master from origin.
To https://github.com/liuwei0376/springCoreReview.git
   860ec72..a1ebf9a  master -> master

Administrator@WIN-SFEF82JSFI3 MINGW64 /d/IdeaProjects-6/springCoreReview (master)
$

四 变通实现方式

    1. github中先创建好project.
    1. 克隆远程项目至本地

$ git clone https://github.com/liuwei0376/springCoreReview.git

    1. 本地开发/测试
    1. 提交代码(add/commit/pull/push等)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值