切换到宽版
  • 2824Read
  • 0Replay

Ubuntu install Git Server [复制链接]

上一主题 下一主题
离线Francis
 

只看楼主 倒序阅读 使用道具 楼主  posttime: 2016-04-08
— 本帖被 Francis 从 Linux--Ubuntu/Git 移动到本区(2017-10-15) —
        
服务器端搭建
sudo apt-get update

sudo apt-get install git-core

sudo adduser git

cd /home/git
su git


mkdir yourproject.git

git init —bare —shared yourproject.git

          
客户端:
非22端口的git clone
git clone ssh://git@hostname:port/.../xxx.git

创建文件并推送文件
cd xxx
touch hello
git add.
git commit -m "hello"
git push


      
















快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个