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 > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "how to build and use Git services". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build and use Git services.
The principle of GitGit and the difference between Git and SVN Common Git commands
> git init-- initialize the local repository > git status-- check the status of the local repository (added or deleted) > git add XXX-- add the XX file to the temporary storage area > git commit-m "XXXX"-- submit this version with the message XXXX > git log-- View the git log Submit Jiluo Road > git remote-check if there is a binding for remote warehouse > git remote add origin [url]-bind a remote warehouse to local warehouse > git branch-view current branch > git push-u origin master-push project to remote branch Git branch operation
Switching branches will make the modified contents of the original branches disappear, and it will appear again when switching back.
> git branch-View current branch > git checkout dev-pick switch branch > git add-A-submit all local changes > git remote-View remote warehouse > git push origin master-push to remote warehouse (first submit add-u parameter)-> git push origin dev-submit to dev warehouse (first time submit add-u parameter) > git commit-a- M 'xx'-submit all documents
Local branch and remote branch associate origin/test original branch test local branch
Git branch-- set-upstream-to=origin/test test git fetch-- Update git branch-a-- View local branches
The New View (milestone) tag can create branches based on tag
> git tag' the_first_tag'-- create a branch > git push origin the_first_tag-- submit a branch / / fixme
Git submission log view
Git log git log-- stat git log-s test-- query logs about test
Git and remote warehouse
Git remote-v / / View all remote repositories git remoteadd origin [URL] / / add remote repositories git remoteadd [shortname] [url] / / add remote repositories. The default origin name is git push [shortname] [branch] / / the first push to a remote branch requires adding-ugit pull [shortname] [branch] / / pull the specified branch from the remote warehouse to build Git private server Git lab and Git hubgitlab management tools install gitlab mirror source https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/ link: https://pan.baidu.com/s/1o7XTTb0 password: 5cya hardware requirements: memory 2G idle installation lazy service sudo yum install-y curl openssh-server openssh-clients croniesudo lokkit-s http-s ssh install mail service sudo yum install postfix sudo service postfix start sudo chkconfigpostfix on install gitlab component sudo rpm-ivh gitlab -changing ce-9.5.4-ce.0.el6.x86_64.rpm configuration gitlab vim / etc/gitlab/gitlab.rb# to native address external_url=' http://192.168.0.101'# default 8080 is easy to cause conflicts It is recommended to modify it to another port unicorn ['port'] = 8080 to start gitlabsudo gitlab-ctl reconfigure to open the management interface # default to port 80 to ensure that there is no port conflict http://192.168.0.101/gitlab basic operation command sudo gitlab-ctl start # start all gitlab components Sudo gitlab-ctl stop # stops all gitlab components; sudo gitlab-ctl restart # restarts all gitlab components; sudo gitlab-ctl status # checks service status; sudo gitlab-ctl reconfigure # starts services; sudo vim / etc/gitlab/gitlab.rb # modifies default configuration files; at this point, I believe you have a better understanding of "how to build and use Git services". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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