How to Install Git Server in the PI
来源:互联网 发布:南京大学网络教育2017 编辑:程序博客网 时间:2024/05/29 18:02
install the git software:
sudo apt-get install wget git-core
if you don’t have ssh,install it:
sudo apt-get install ssh
start ssh:
sudo /etc/init.d/ssh start
set default start:
sudo update-rc.d ssh defaults
add a user and group named git:
adduser --system --shell /bin/bash --gecos 'git version control by pi' --group --home /home/git gitpasswd gitsu gitcd /home/git
install a new Repo:
mkdir myRepo.gitcd myRepo.gitgit --bare init
add a new remote host(my PI’s IP is 192.168.1.102)
git remote add origin git@192.168.1.102 :/home/git/myRepo.git
git clone git@192.168.1.102:/home/git/myRepo.git##add some files,do some modificationgit add .git commit -am "Initial"git push origin master
阅读全文
0 0
- How to Install Git Server in the PI
- How to Install a BTDownloader in the PI
- How to install Mysql in linux server
- How to install VIM in the MSYS?
- How to install live555 in the MSYS?
- How to install an SSH Server in Windows Server 2008
- How to install Xvfb (X11 Server) in Linux Server
- How to install an SSH Server in Windows Server 2008
- How to Install Nas System with PI
- how to install the chrome in the Ubuntu platform
- How to install GD/Curl in cPanel server
- How to Install a VNC Server in Ubuntu
- How to Install a VNC Server in Ubuntu
- How to install or upgrade UV4L on Raspbian (for the Raspberry Pi)
- How to Install the Gnome Classic Desktop in Ubuntu 14.04
- How to install an APK file in the Android emulator?
- How to install the latest Eclipse in Ubuntu 14+
- How to install the pycharm in my ubuntu
- 看涨吞没
- POIjava操作excel文件
- mybatis-mapper的复杂映射
- PostgreSQL Getting Started
- java之路:启动问题:Fail to create the java Virtual Machine
- How to Install Git Server in the PI
- 从const int *, int const *, int * const 及const int * const到指针常量、常量指针
- mysql执行sql文件中文乱码解决
- 写入、读取Mysql数据库时乱码的解决办法:(超有效)
- spring mvc 注解RequestParam,RequestBody,ModelAttribute详细说明
- 免费的STUN服务器
- Java设计模式之创建型模式-原型模式(Prototype)
- ListView + CheckBox(或者是RadioGroup等控件)的混乱选中原理
- HDU 6170 Two strings (二维DP)