一、 服务器端
创建空的仓库(以项目tm201为例)
1. git账户登录
2. 新建仓库目录 mkdir tm101.git && cd tm201.git
3. git初始化新的空的仓库 git --bare init
二、 客户端
客户端从服务器把clone空的仓库到本地
1. clone空的仓库:git clone git@10.1.1.119:/home/git/tm201.git
2. 拷贝源代码alps到tm201目录下
3. git add alps
4. git commit –m “init tm201 version, base tm100” alps
5. git push origin master
Git创建与简单使用
原创
©著作权归作者所有:来自51CTO博客作者wg_ijhFhFaB的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:Git常用基础命令
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
git clone 与 git 安装
git clone 与 git 安装
git 安装程序 自定义 -
git的使用
git的学习记录
git 推送 远程库 -
GIt使用教程
Git 基本应用
git 使用教程 fish -
git简单使用
git1. 设置用签名git config --global user.name 用户名 #与 gi
git github 本地库 文件名 -
Git命令简单使用
Git命令简单使用背景最近经常使用Github,每次修改个文件代码都要在网页端操
git github 缓存 -
git fetch使用简单记录
简述一般从远程仓库clone到本地,但
git branch 库 管理 fetch