Git 基本命令
来源:互联网 发布:七匹狼授权淘宝网店 编辑:程序博客网 时间:2024/06/04 01:13
从现有仓库克隆
git clone [url]
在工作目录中初始化新仓库
git init
删除本地所有未提交的更改
git clean -xdf
同步远程仓库
git pull
添加到索引库
git add
修改合并到当前分支
git merge –squash [local LLV branch]
提交当前工作空间的修改内容
git commit (git commit –amend 改写提交)
推送本地分支到远程分支
git push origin HEAD:refs/for/[branch_name]
查询本地git库的状态
git status (通过git status -uno 只列出所有已经被修改但没提交的文件)
分支查询
git branch 查看当前分支(git branch -r 查看远程分支,git branch -vv查看本地/远程分支关联关系)
切换到分支
git checkout(git checkout -b [branch] 创建并切换)
阅读全文
0 0
- 【Git】Git基本命令①
- GIT基本命令
- git 基本命令介绍
- git 基本命令
- git 基本命令介绍
- git 基本命令使用
- git 基本命令
- git 基本命令
- Git基本命令
- Git基本命令整理
- git基本使用命令
- Git操作基本命令
- git基本命令
- git基本命令
- git 基本命令介绍
- Git 基本命令
- git 基本命令
- git常用基本命令
- fiddler filter 过滤css 图片等
- 蓝桥杯 学做菜
- Java CompletableFuture
- 关于group by 两个或以上条件的分析
- position:fixed与可scroll的列表,跳转之后再返回底部div先浮在上面,再恢复正常
- Git 基本命令
- 快速web开发中的前后端框架选型最佳实践
- perl对接sqlite3数据库
- POJ 2533 Longest Ordered Subsequence
- MUI上拉加载,下拉刷新
- ubuntu搭建mediawiki全过程(1)
- 关于nodejs中的回调函数理解
- 2017最新CocoaPods安装
- sed 首行加一行