Git常用高频命令学习

gitBash命令行:

cd d

git clone gitserver@192.168.1.78:/gitrepo/Aries

gitk

git branch develop 创建本地分支

git branch -d develop 删除本地分支

git branch -a 查看所有本地和远程分支

git status 状态

提交分支

git add . 加入到提交队列

git commit -m "注释" 提交代码到远程分支

git push origin head:refs/for/master 合并分支到master

切换分支

git checkout develop

git pull --rebase origin develop

git push origin develop

合并分支

git checkout master

git pull origin master(防止别人提交了未更新)

git merge --no-ff develop

暂存本地修改文件

git stash save

拉取当前分支代码

git pull --rebase

释放本地修改文件

git stash pop

Git常用命令:

http://www.cnblogs.com/cspku/articles/Git_cmds.html

Git分支操作

http://blog.csdn.net/arkblue/article/details/9568249/

相关推荐
xinjia_ctrl3 小时前
暑假实习总结
git·后端·spring·maven·intellij-idea
Molesidy6 小时前
【Git】分别给出添加到Keil工程和IAR工程中的gitnore文件以便不跟踪编译文件的git记录
git·vscode·插件
颜颜yan_10 小时前
Git Cola 鸿蒙 PC 版适配全记录:从 Qt 桌面工具到 ArkTS 原生应用
git·qt·harmonyos
知福致福12 小时前
【技术复盘】Git 分支污染与提交污染事故排查与解法
大数据·git·elasticsearch
ai安歌12 小时前
Git Extensions 鸿蒙 PC 适配全记录:从 WinForms 客户端到 ArkUI 原生工作台
git·华为·harmonyos
那年窗外下的雪.15 小时前
AIDC 学习日志|第 25 天|设备输出反推、MAC Flapping 与 EAD 撤销
前端·网络·git·学习·macos
末央&1 天前
GIT工具的基础指令与使用
git
彧azz1 天前
Git 入门实操实例:从安装到远程仓库全流程
大数据·笔记·git·学习·elasticsearch
idealzouhu2 天前
Git 命令全景解析:基于数据流向的认知框架
git