git 常用命令

来源:互联网 发布:windows原版aero主题 编辑:程序博客网 时间:2024/06/08 00:18

基本的工作流程


具体操作

初始化仓库

git init

对指定文件跟踪

git add

提交

git commit

推送到远程仓库

git push origin master

克隆现有仓库

git clone <repo>


提取远程分支

git fetch -a 

切换分支命令

git checkout  (branchname)

合并分支命令

git merge

列出分支

git branch

删除分支

git branch -d (branchname)


参考文档

 

原创粉丝点击