In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Now do software product projects, basically use git for code management. Compared with the people who are new to SVN,git, they do feel hurt about the use of git. The summary pit is as follows: 1. Do not understand git, do not know git local warehouse, remote warehouse command 2.SVN in Eclipse is more comfortable than git, not easy to make mistakes. But it is a general trend to use git to manage the project code, and we have to master it well. Fortunately, after many practices, the command is finally used in git cmd to solve the code synchronization management perfectly. Synchronize remote code, encounter conflict resolution 1. Method one is to overwrite the local file with a remote file. Git pull git checkout 2. Method 2, git pull, temporarily save git stash list when there is a conflict, view the list of temporary saved records, git stash temporarily save local modifications and find conflicts. After resolution, git add git commit-m "comment" git stash apply stash@ {0} releases local temporary conflict files. Resolve and submit git add git commit-m "comment" 3. Method 3, git pull found that there is a conflict prompt, there are conflict file prompts in git cmd. Pom.xml as an example: git add pom.xml git commit-m "XXX conflict resolution" git pull update code found conflict files, modified git found conflict files, and decided whether to keep git add file git commit-m "conflict resolution" git push origin Local:remote.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.