服务器端:

mkdir project.git

cd project.git

git init --bare

cd ..

p.p1 { margin: 0; font: 11px Menlo; color: rgba(0, 0, 0, 1); background-color: rgba(255, 255, 255, 1) }
span.s1 { font-variant-ligatures: no-common-ligatures }

chown -R git:git project.git/

文件夹必须改为git用户组所有

客户端:

服务器数据路径

git clone git@xx.xx.xx.xx:/project.git

echo "this is a test text file,will push to server" > hello.txt

git add .

git commit -am "init a base version,add a first file for push to server"

git push origin master

p.p1 { margin: 0; font: 12px "Helvetica Neue"; color: rgba(69, 69, 69, 1) }
p.p1 { margin: 0; font: 12px "Helvetica Neue"; color: rgba(69, 69, 69, 1) }
span.s1 { color: rgba(228, 175, 10, 1) }

最新文章

  1. mysql数据库备份
  2. 【BZOJ-4423】Bytehattan 并查集 + 平面图转对偶图
  3. 视频1-14待JSP课程看完再练习
  4. 使用WebApi时Post和Put的区别
  5. delphi中locate方法
  6. hdu 4409 LCA
  7. 用pelican搭建完美博客
  8. IIS 7.5 部署ASP.Net MVC 网站
  9. bootstrap绿色大气后台模板下载[转]
  10. POJ1470 Closest Common Ancestors 【Tarjan的LCA】
  11. js中,(function(){})()的用法解析
  12. [河南省ACM省赛-第三届] BUYING FEED (nyoj 248)
  13. 要你的祝福.lrc
  14. 移动HTNL5前端框架—MUI
  15. 解决使用web开发手机网页关于分辨率被缩放的坑
  16. SQLAlchemy+Flask-RESTful使用(二)
  17. 实现网站页面的QQ临时会话,分享到空间微博等按钮.
  18. Logistic回归计算过程的推导
  19. synchronized相关用法简述
  20. RxJava+Retrofit+OkHttp,一步一步封装网络框架;

热门文章

  1. Codeforces 690A2 - Collective Mindsets (medium)
  2. Topcoder 10748 - StringDecryption(dp)
  3. Vue 中 $on $once $off $emit 详细分析,以及使用
  4. C++ and OO Num. Comp. Sci. Eng. - Part 2.
  5. Redis键空间通知(keyspace notification),事件订阅
  6. KVM原理
  7. 基本绘图函数:plot的使用
  8. 通过yum安装 memcache
  9. 【Linux】CentOS下升级Python和Pip版本全自动化py脚本
  10. 振鹏学习Java的第二天!