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/[email protected]
 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等)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章