按照CRUD的原则整理一下git基本命令
来源:互联网 发布:mongodb 连接数据库 编辑:程序博客网 时间:2024/06/05 17:11
按照CRUD的原则整理一下git基本命令
==============Create Like===============
add changes to the staging area
git add <file>
add remote repository
git remote add origin <repo>
create branch
git branch <new_branch_name> <base_branch>
==============Read Like===============
get project status
git status
compare changes
git diff <file>
view the history of changes
git log <file>
binary search of the repository looking for which commit introduced the problem
git bisect start
git bisect bad
git bisect good HEAD~5
know who worked on certain sections
git blame <file>
view the changes made in the commit
git show
switch to the new branch
git checkout <new_branch_name>
check the current branch
git branch
==============Update Like===============
commit changes to the repository
git commit -m "commit msg"
push changes to remote repository
git push
push changes on specific branch to remote repository
git push origin <branch_name>
sync changes from remote repository
git pull
download changes from remote repository - will not apply
git fetch
apply the changes from remote repository
git merge <repo>
apply the changes from local branch
git merge <merge_from_branch>
unwind and replay the changes in the branch
git rebase
merge specific files
git cherry-pick <new_branch~1>
==============Delete Like===============
give up or undo changes
git checkout <file>
give up or undo changes in staging area
git reset HEAD <file>
give up all changes
git reset --hard
give up the changes committed
git revert <commit-ish>
delete branch
git branch -d <branch_name>
==============Create Like===============
create project
git init
add changes to the staging area
git add <file>
add remote repository
git remote add origin <repo>
create branch
git branch <new_branch_name> <base_branch>
==============Read Like===============
get project status
git status
compare changes
git diff <file>
view the history of changes
git log <file>
binary search of the repository looking for which commit introduced the problem
git bisect start
git bisect bad
git bisect good HEAD~5
know who worked on certain sections
git blame <file>
view the changes made in the commit
git show
switch to the new branch
git checkout <new_branch_name>
check the current branch
git branch
==============Update Like===============
commit changes to the repository
git commit -m "commit msg"
push changes to remote repository
git push
push changes on specific branch to remote repository
git push origin <branch_name>
sync changes from remote repository
git pull
download changes from remote repository - will not apply
git fetch
apply the changes from remote repository
git merge <repo>
apply the changes from local branch
git merge <merge_from_branch>
unwind and replay the changes in the branch
git rebase
merge specific files
git cherry-pick <new_branch~1>
==============Delete Like===============
give up or undo changes
git checkout <file>
give up or undo changes in staging area
git reset HEAD <file>
give up all changes
git reset --hard
give up the changes committed
git revert <commit-ish>
delete branch
git branch -d <branch_name>
0 0
- 按照CRUD的原则整理一下git基本命令
- 基本GIT命令的整理
- 整理一下vim命令的基本用法
- Git基本命令整理
- Git基本命令整理
- git 基本命令整理
- git基本命令整理
- Git 基本命令整理
- GIT基本使用命令整理
- git基本操作命令整理。
- git的基本命令
- Git基本的命令
- Git的基本命令
- git的基本命令
- git的基本命令
- 整理Git的命令使用
- 常用的Git命令整理
- 【整理】不熟悉的git命令
- Python-地址簿
- HDU 1506 Largest Rectangle in a Histogram 迭代思想应用
- 【转】Oracle和DB2术语对照表
- 电商系统Broadleaf文档翻译(九) – 扩展的服务extending services
- 关于abstract使用正确的一个经典选择题
- 按照CRUD的原则整理一下git基本命令
- 继承,菱形继承,多态,虚拟继承,多虚拟继承,菱形虚拟继承
- CCPP资料
- 9. 使用Filter
- android自动弹出软键盘(输入键盘)
- 添加和删除元素:
- 求二叉树的深度
- Flume+Kafka+Storm的实时日志统计
- 发送短信验证码按钮的实现