Category Archives: Git

Git Server 安裝

OS: Ubuntu 12.04 Desktop x64 安裝Gitlab + MySQL 系統更新 apt-get update apt-get upgrade -y apt-get dist-upgrade 安裝基本需求 update-alternatives –set editor /usr/bin/vim.basic sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev … Continue reading

Posted in Git, Ubuntu | Leave a comment

Git : non-fast-forward

當進行 gir push 發生 “non-fast-forward” 錯誤時 (如下面這個範例) root@ubuntu:/mnt/tdg_logs/blacklist/Git/master# git push -u 20140821 master Enter passphrase for key ‘/root/.ssh/id_rsa’: To git@cowman.no-ip.org:udn/udn_php-domain_name_query.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘git@cowman.no-ip.org:udn/udn_php-domain_name_query.git’ To prevent you from losing history, … Continue reading

Posted in Git | Leave a comment