随笔分类 -  Git

摘要:1. 在服务器上安装git和ssh sudo apt install openssh-server openssh-client 2. 在服务器上新建一个用户,比如就叫git,使用这个用户来进行git方面的服务。 sudo adduser git 创建用户后,切换到该用户: su git以下操作都在 阅读全文
posted @ 2015-10-28 10:54 ibg 阅读(561) 评论(0) 推荐(0)
摘要:1.创建一个新的repository:先在github上创建并写好相关名字,描述。例如这样一个地址:https://github.com/test/test2.git回到本地目录如helloworld:$cd ~/helloworld初始化$git init 把所有文件加入到索引(不想把所有文件加... 阅读全文
posted @ 2014-01-02 15:11 ibg 阅读(421) 评论(0) 推荐(0)