Gitlab Build _github

Source: Internet
Author: User
Introduction to several nouns git is a version control system and is also the client side of Git. Gitlib: The development library for GIT functionality github: Git global version Management Library, open to the public.

Gitlab: It can be understood as a local github built by oneself. The construction process of Gitlab

Yum Install Curl policycoreutils openssh-server openssh-clients yum install postfix curl-ss https://
packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh |sudo bash
yum install gitlab-ce
Gitlab-ctl Reconfigure   #启动gitlab社区版
Gitlab Default File directory
Master profile:/etc/gitlab/gitlab.rb   //can customize some mail services such as
log address:/var/log/gitlab/    //corresponding service
address:/var/opt/gitlab/   //corresponding to the service's home directory
warehouse Address:/var/opt/gitlab/git-data//Record project warehouse and other submission information
reset configuration: Gitlab-ctl reconfigure//    don't mess with, Reset Service Reset to the original configuration
: Gitlab-ctl  stop/start/restart  //startup command
default installation: Postgres, Nginx, Redis, Unicorn ......
When created, you can import warehouses from other places such as GitHub, Gitlab, Googlecode, and need each other token SVN project to migrate to the Git tool: Git-svn-transfer git counts the amount of code based on the date
git log--format= '%an ' | Sort-u | while read name; Do echo-en "$name \ t";  git log--since ==2017-04-21--until==2017-05-21  --author= "$name"--pretty=tformat:--numstat | awk ' {add + = $ subs + $; LOC + + $} end {printf "added lines:%s, removed lines:%s, total lines:%s\n", Add, Subs, loc} '-; Done

git log--author= "$ (git config--get user.name)"--pretty=tformat:--numstat | gawk ' {add + = $; subs = $ OC = $ $} end {printf "added lines:%s removed lines:%s Total lines:%s\n", Add,subs,loc} '-   # git counts the amount of code submitted by someone, Include adding, removing
git log--pretty= '%an ' | sort | uniq-c | sort-k1-n-r | Head-n 5  #统计提交的前5名
git log--oneline | wc -L   # Submit count Statistics
Upload the local project to the Gitlab
CD "Path to local presence project"
git init
git remote add origin git@gitlab.com:username/projectname.git
git Add.
Import git project to local
git clone git@gitlab.com:username/projectname.git

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.