git integration idea (c)

1. first create a project on github remote repository, then delete the previous happy project, re-create the happy project

2. Open the configuration items in the idea, while finding github configuration options, performs a login process:

  ● steps: ☞ [File] [Settings] [Version Control] ☞ ☞ ☞ [GitHub] [Login]; for the first time need to configure when connected, do not reuse the configuration of this operation.

3. Create a happy idea to create a project file in the same directory .gitignore .git folder, define the content of all that needs to be ignored in this file, for example:.. * Jar, * class, etc., document reads as follows :

*.class

#package files

*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

#kdiff3 ignore
target/

#eclipse ignore
.settings/
.project
.classpath

#idea
.idea/
/idea/
*.ipr
*.iml
*.iws

# temp file

*.log
*.cache
*.diff
*.patch
*.tmp

#system ignore
.DS_Store
Thumbs.db

4.idea achieve git version control: https://www.mldn.cn/course/254/task/13528/show#

 

 

  

 

Guess you like

Origin www.cnblogs.com/wxl123/p/11286295.html