git 菜鸟级命令
来源:互联网 发布:tensorflow 关闭gpu 编辑:程序博客网 时间:2024/06/04 18:10
git clone [url]
获取一个 url 对应的远程 git repo, 并在本地创建一个 local copy
git status查询 repo 的状态
git status -s-s 表示short
git touch新建一个文件
git touch Readme.md新建一个名为 Readme.md 的文件
git vim使用 vim 编辑器打开文件
git add在提交之前,将新的改动添加到git 的暂存区,(staging area)。
git commit将 add 到 staging area 中的改动提交。
gitk --all查看所有 branch 的历史纪录。 (上面 all 前面是两个减号 “ - ”)
git push <remote> <branch>
将 <branch> push 到 <remote>。如果 <branch> 不存在则新建该 <branch>。
git remote用于管理 git 为每一个 remote repo 的 url 建立的别名(alias)。
git remote -v列出所有 remote aliases
git branch列出 repo 中所有的 branch
git branch <branch>创建名为 <branch> 的新的 branch
git checkout -b <branch>新建一个名为 <branch> 并checkout(查看?)。如果要check out 已经存在的 branch,就把中间的 “ -b " 去掉。
git log以默认形式显示所有commit history(提交记录?)。
git push <remote> <branch>push your new branches and data to a remote repository.
git diffshow diff (differences) of unstaged changes.
比较工作目录中文件和 staging area 之间的差异。修改后还没有 staged 的变化。
git merge将一个 branch merge进当前的 branch
merge -about
git checkout -b
git branch -d
git echo "somefile.file" >> gitignore
git reset "somefile.file"
git reset HEAD~ ~~ ~~~ ~3
还是实践后加深理解吧。
a git cheat sheet might be helpful for a beginner.
click git cheat sheet to get it and enjoy it.
阅读全文
0 0
- git 菜鸟级命令
- 菜鸟学git的基本命令及常见错误
- Linux菜鸟入门级命令大全
- 经典:Linux菜鸟入门级命令大全
- Linux菜鸟入门级命令大全
- Linux菜鸟入门级命令大全
- 经典:Linux菜鸟入门级命令大全
- 经典:Linux菜鸟入门级命令大全
- 经典:Linux菜鸟入门级命令大全
- Linux菜鸟入门级命令大全
- Linux菜鸟入门级命令大全
- Linux 菜鸟入门级命令大全
- Linux菜鸟入门级命令大全
- Linux菜鸟入门级命令大全
- Git菜鸟(一)
- git菜鸟教程
- 菜鸟学习git
- 菜鸟git gui使用
- 让人惊喜的Kotlin特性!!
- bzoj2038 [2009国家集训队]小Z的袜子(hose) (莫队裸题)
- 在浏览器中输入www.baidu.com后执行的全部过程
- 文章标题
- Java学习笔记之JDK1.5新特性(一):静态导入
- git 菜鸟级命令
- Spring MVC ModelAndView 跳转提升找不到.jsp
- TensorFlow LSTM 注意力机制图解
- 虚拟机 centos 桥接连网
- 自学Mybatis(三)-----Mybatis注解方式的基本用法
- java 求一个list集合中出现次数最多的一项,和此项的出现次数
- 代理模式 -动态代理
- Android webview白屏
- WebService单入门教程