创建Ubuntu server 服务器git项目
2024-09-06 20:56:52
服务器端:
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) }
最新文章
- mysql数据库备份
- 【BZOJ-4423】Bytehattan 并查集 + 平面图转对偶图
- 视频1-14待JSP课程看完再练习
- 使用WebApi时Post和Put的区别
- delphi中locate方法
- hdu 4409 LCA
- 用pelican搭建完美博客
- IIS 7.5 部署ASP.Net MVC 网站
- bootstrap绿色大气后台模板下载[转]
- POJ1470 Closest Common Ancestors 【Tarjan的LCA】
- js中,(function(){})()的用法解析
- [河南省ACM省赛-第三届] BUYING FEED (nyoj 248)
- 要你的祝福.lrc
- 移动HTNL5前端框架—MUI
- 解决使用web开发手机网页关于分辨率被缩放的坑
- SQLAlchemy+Flask-RESTful使用(二)
- 实现网站页面的QQ临时会话,分享到空间微博等按钮.
- Logistic回归计算过程的推导
- synchronized相关用法简述
- RxJava+Retrofit+OkHttp,一步一步封装网络框架;
热门文章
- Codeforces 690A2 - Collective Mindsets (medium)
- Topcoder 10748 - StringDecryption(dp)
- Vue 中 $on $once $off $emit 详细分析,以及使用
- C++ and OO Num. Comp. Sci. Eng. - Part 2.
- Redis键空间通知(keyspace notification),事件订阅
- KVM原理
- 基本绘图函数:plot的使用
- 通过yum安装 memcache
- 【Linux】CentOS下升级Python和Pip版本全自动化py脚本
- 振鹏学习Java的第二天!