git学习笔记
来源:互联网 发布:ipad监控软件 编辑:程序博客网 时间:2024/05/01 22:21
设置Git的user name和email:
$ git config --global user.name "YZJ"
$ git config --global user.email "QQ@qq.com"
git init命令把这个目录变成Git可以管理的仓库
git add 把文件添加到仓库
git commit 把文件提交到仓库
git commit -m "comment"
git status命令查看状态结果
git diff 查看差异
git log 命令显示从最近到最远的提交日志
远程仓库
创建SSH Key ssh-keygen -t rsa -C "youremail@example.com"
登陆GitHub,打开“Account settings”,“SSH Keys”页面 Add SSH Key
登陆GitHub,然后,在右上角找到“Create a new repo”按钮,创建一个新的仓库
git remote add origin git@github.com:YZJ/learngit.git 关联
首次推送git push -u origin master
以后git push origin master
克隆
git clone git@github.com:YZJ /learngit .git
0 0
- 【git】git学习笔记
- Git学习笔记-Git Branching
- Git学习笔记:Git命令
- git常用命令-Git学习笔记
- Git学习笔记--Git入门
- Git 学习笔记 --- 自定义Git
- git/github学习笔记
- git 学习笔记
- Git 学习笔记
- git学习笔记
- git 学习笔记
- Git学习笔记 - 1
- Git学习笔记
- Git学习笔记 - 1
- git/github学习笔记
- git学习笔记
- Git 学习笔记
- GIT之学习笔记
- 精通 CSS+DIV 网页样式与布局 10
- 第14周项目2-二叉树排序树中查找的路径
- 【C语言】leetcode 67. Add Binary
- 泛型应用
- 29 leetcode - Divide Two Integers
- git学习笔记
- Android利器之Service
- 域名和网络地址结构体---struct hostent
- 三台机器搭建Hadoop集群
- 浅析LDA-主题模型
- CSS基础
- 三种特征选择方法及Spark MLlib调用实例(Scala/Java/python)
- Sparse Matrix --- (1) Blocks
- 用栈和递归求解迷宫问题