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