git:指令备忘录
来源:互联网 发布:php 开源网盘系统 编辑:程序博客网 时间:2024/06/05 16:48
准备工作
生成公钥:
ssh-keygen
复制以下SSH公钥到对应地方:
cat ~/.ssh/id_rsa.pub
测试连接是否成功:
ssh -T git@github.com
日常指令
全部指令:
$ gitusage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>]The most commonly used git commands are: add Add file contents to the index bisect Find by binary search the change that introduced a bug branch List, create, or delete branches checkout Checkout a branch or paths to the working tree clone Clone a repository into a new directory commit Record changes to the repository diff Show changes between commits, commit and working tree, etc fetch Download objects and refs from another repository grep Print lines matching a pattern init Create an empty Git repository or reinitialize an existing one log Show commit logs merge Join two or more development histories together mv Move or rename a file, a directory, or a symlink pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects rebase Forward-port local commits to the updated upstream head reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index show Show various types of objects status Show the working tree status tag Create, list, delete or verify a tag object signed with GPG'git help -a' and 'git help -g' lists available subcommands and someconcept guides. See 'git help <command>' or 'git help <concept>'to read about a specific subcommand or concept.
Ref:
Pro Git book(中文版)
Git常用备忘.md
21分钟入门Git
Git远程操作详解
GUI Clients
阅读全文
2 0
- git:指令备忘录
- 【版本控制-Git及GitLab使用】Git常用指令备忘录
- git备忘录
- Git备忘录
- git备忘录
- git备忘录
- git备忘录
- 备忘录--git
- git备忘录
- git备忘录
- git 备忘录
- Vim指令备忘录
- linux指令备忘录
- github日常指令备忘录
- python: pyenv 指令备忘录
- git命令备忘录
- git命令备忘录
- git命令备忘录
- vs2008下设置.h, .lib和 .dll 的路径配置全图及其意义
- 绘制灰度直方图(OpenCV + Java)
- 树、森林与二叉树的转换及遍历
- 解决:按截图 ctrl+alt+a QQ聊天窗口就自动最小化(QQ以外的可以截图)
- TCP定时器
- git:指令备忘录
- Java面试题全集(上)
- 数据结构----插入排序
- Ctrl键组合
- 解决Android Studio 新建导入项目时死掉
- postgresql与Oracle:空字符串与null
- 35. Search Insert Position
- 实验 折半查找算法
- setInterval第一个参数加引号与不加引号区别