In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what are the basic operations of Git. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Git is a version management tool, which can only be used locally when your computer is not connected to the Internet. Its function is to enable you to better manage your programs.
Create a new git repository git init # initialize git add readme.md # add a new file git commit-am "some description" git remote add origin [remote address] # add a remote warehouse address git push-u origin master # submit to the remote to create a branch git branch newbranch # create a branch locally git checkout newbranch # switch to a new branch git push origin newbranch # submit the new branch to the remote git branch-d Newbranch # Delete local branch git psuh origin: newbranch # Delete remote branch The colon before the branch represents delete operation remote branch git branch-a # check which remote branches git branch-a # see which remote branches are available, and display the last commit message git push origin-- delete [remote branch name] # delete the specified remote branch version fallback git log # display the commit log, show not so beautiful git log-pretty=oneline # view the submission log and show it on one line More beautiful git reset-- hard [commit id] # check the submission history through git log to determine the location you want to return to, and get the git reflog that you want to return to the commit id execution # View all the executed git commands can be used to find the commit id before rollback using git reset-- hard rollback past this article on "what are the basic operations of Git" is shared here. I hope the above content can be helpful to you. So that you can learn more knowledge, if you think the article is good, please share it for more people to see.
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.