git
来源:互联网 发布:java编程语言班 编辑:程序博客网 时间:2024/04/29 17:12
生成git key
git config --global user.name "name"
git config --global user.email "email"
ssh-keygen -t rsa -C "email"
git init 当前的目录下创建一个新的空的本地仓库
git checkout dev 分支切换
git pull/push
git branch -a 查看分支
git status 查看状态
git add file or directory
git commit -a 提交到本地 -m "comment" 添加注释
git push origin dev 提交的远端服务器
git reset 恢复的某个版本 -hard <comment id>
git log
git diff 比较前一个版本的不同, git diff > patch
git diff --cached
git apply patch
git run --cached readme.txt
git cherry-pick uuid
git fetch -v
git pull origin dev
git tag
git stash 缓存到本地,以便切换分支
git stash pop/list
git format-path -s -1 commit号
0 0
- git
- git
- Git
- Git
- Git
- Git
- git
- git
- Git
- GIT
- git
- GIT
- Git
- git
- git
- Git
- GIt
- git
- UVa 424 - Integer Inquiry
- 百度地图自定义标注标记
- JAVA中SERIALVERSIONUID的解释
- fzu2038
- 指针数组和数组指针
- git
- 【git】fatal: This operation must be run in a work tree
- spring基础知识2:最小化spring xml
- DeployGate开始提供中文支持
- APUE练习题3.2——write your own dup2
- c# 的委托的用法
- spring基础知识3:aop
- 仿百度搜索下拉提示功能
- LeetCode Add Two Numbers