Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the basic commands involved in warehouse initialization and file submission under Idea

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you what are the basic commands involved in warehouse initialization and file submission under Idea. I hope you will gain something after reading this article. Let's discuss it together.

1. Basic commands related to warehouse initialization and file submission under Idea

Git init initializes the local repository git add. XML in the current directory. Submit the current directory folder to the warehouse temporary storage area git remote add origin url bind the remote warehouse address to the local idea to create an ordinary maven project as follows (the current project is in the C:\ java\ idea_new_js directory):

1.3.1. Execute the git init command to initialize the local repository 1.3.2 in the same directory as the current project. Submit the file to the temporary storage area of the git warehouse to execute git add. Submit the contents of the entire file under the current project directory

At this point, you see a warning message in the log output because the carriage return newline character under windows is inconsistent with that under linux. The warning is resolved as follows: git rm-rf .git deletes the original warehouse file configuration global property information custom cache is set to false to perform initialization operation again and add the index file to the temporary storage area, the problem is solved!

1.3.3. Submit temporary storage area files to the warehouse

Git commit-m "xxx"

1.4.1. Create warehouse 1.4.2. Remote warehouse initialization successful interface here pay attention to the second option: execute remote push function remote warehouse initialization completed remote push through idea command warehouse to perform remote push

1.4.3. Bind remote url to local 1.4.4. The result of refreshing the new warehouse page of github is as follows:

Looking at the managed directory information, it is found that some files that do not need to be submitted are also submitted to the remote library (such as the local idea configuration information .idea folder here). You need to ignore them and do not display them in the remote library.

1.5 ignore submitted remote warehouse history file 1.5.2 execute local submission git commit-m "xxx"

1.5.3 remote push operation git push origin master after a successful push, the result of refreshing the remote library page is as follows (git01.iml file is also unnecessary to submit. Ignore the file and repeat the above steps):

After reading this article, I believe you have a certain understanding of "what are the basic commands involved in warehouse initialization and file submission under Idea". If you want to know more about it, please follow the industry information channel and thank you for your reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report