In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what are the common commands in git shell". In daily operation, I believe many people have doubts about the common commands in git shell. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what are the common commands in git shell?" Next, please follow the editor to study!
Git branch view all local branches git status view current status git commit submission git branch-a view all branches git branch-r view remote all branches git commit-am "init" submission and annotate git remote add origin git@192.168.1.119:ndshowgit push origin master push files to the server git remote show origin display resources in the remote library git push origin master:developgit push origin master:hb-dev compare the local library with The library on the server associates git checkout-- track origin/dev switches to remote dev branch git branch-D master develop deletes local library developgit checkout-b dev establishes a new local branch devgit merge origin/dev merges branch dev with current branch git checkout dev switches to local dev branch git remote show view remote library git add .git rm filename (including path) deletes the specified file git clone git://github from git Com / schacon/grit.git pull the code from the server git config-- list look at all users git ls-files see git rm that has been submitted [file name] Delete a file git commit-a submit all changes to the current repos git add [file name] add a file to git indexgit commit-v when you use the-v parameter you can see the difference in commit git commit-m "This is the message describing the commit" add Add commit message git commit-a-a represents add Add all change to git index and then commitgit commit-a-v General submit commands git log View your commit log git diff view unsaved updates git rm a.a remove files (delete from staging area and workspace) git rm-- cached a.a remove files (delete only from staging areas) git commit-m "remove" remove files (delete from Git) git rm-f a.a forcibly remove changes After the file (removed from the staging area and workspace) git diff-- cached or $git diff-- staged view updates that have not been submitted git stash push send the file to push to a temporary space git stash pop to pop the file from the temporary space
At this point, the study of "what are the common commands in git shell" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.