Git入門之在IDEA中使用Git上傳maven項目


下載安裝git客戶端:

    參考博文:https://www.cnblogs.com/java-maowei/p/5950930.html

在IDEA怎么使用git上傳spring的maven項目詳解:

 一:在IEDA的settings設置中輸入Git,先配置托管

      

 

  再配置本機連接端

二:設置聚合項目中沒必要提交的文件

  1.在maven項目下新建文件,並命名為  .gitignore  

    

   內容為:

# Created by .ignore support plugin (hsz.mobi)
### Maven template
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties

.idea/

## File-based project format:
*.iws
*.iml
*.ipr

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

 2.創建倉庫

3.怎么知道創建好沒,找到打開當前項目的目錄位置,出現下面情況則為創建成功

4.現在你會發現VCS下多出了Git的選項欄,點擊Add將當前項目添加到索引庫:

 

 5.添加到本地索引庫后,會發現Git下的Check In變亮可點擊了,這時將項目添加到本地倉庫

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM