用Sourcetree管理自己的Git服务器
一、Git服务器搭建sudo apt-get install git #安装git sudo adduser git #添加git用户 sudo git init --bare your_repo_name.git #创建第一个git repo (选好路径) sudo chown -R git:git your_repo_name.git #改变repo的所有者和用户
一、Git服务器搭建sudo apt-get install git #安装git sudo adduser git #添加git用户 sudo git init --bare your_repo_name.git #创建第一个git repo (选好路径) sudo chown -R git:git your_repo_name.git #改变repo的所有者和用户
#Clone your git repo git clone https://github.com/lestatzhang/lestatzhang.github.io.git; #Entre your local repo cd lestatzhang.github.io; #Checkout git checkout --orphan latest_branch; #Add all