- 2
- 0
- 约4.95千字
- 约 8页
- 2017-06-21 发布于湖北
- 举报
git常用命令解释
GIT ANG REPO USAGE
1?git command
1.1?git add
git add . #将文件先暂存到staging area, stages new and modified, without deleted
git add -A #states all
git add -u #states modified and deleted, without new
git add -i #进入互动模式
git add filename #新增一个文件
git add modify-file #修改过得文档也要加add,不然在commit时要加-a
1.2?git rm #删除文件
git rm filename
1.3?git mv #修改文件名,或搬移目录
git mv filename newfilename
1.4?git status #查看状态
1.5?git commit
git commit
git commit -m commit message
git commit -a -m message
git commit -a -v #-v查看修改的内容
1.6?git branch
git branch #列出所有的分支
git branch new-branch #产生新的分支
git branch new-branch master #由mas
您可能关注的文档
最近下载
- 年产30万吨甲醇精馏提纯的工段设计毕业设计(最全).doc
- 一年级数学20以内加减法计算专项练习题(共23份,每日一练).docx VIP
- 2025年智慧社区体育健身中心改造方案可行性评估报告.docx
- 2024年南京大学强基计划数学试卷试题真题(含答案详解)_可搜索.pdf VIP
- 角钢塔施工方案.docx VIP
- 2024年一级注册建筑师之设计前期与场地设计高分题库附精品答案.docx VIP
- 二年级下册语文教案-《中国美食》人教部编版.docx VIP
- 2025年智慧社区体育健身中心智能化改造项目经济效益评估.docx
- 《网店开设与管理》第1章 网店开设概述.pptx VIP
- 海浦蒙特MONT70系列电梯一体化控制器用户手册_海浦蒙特_V1.3.pdf
原创力文档

文档评论(0)