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/

相关推荐
番茄不是西红柿kk1 天前
deepseek-harness跨平台桌面端二开项目(附git仓库地址+安装包)
git·agent·codex·deepseek·deepseekharness
leoZ2311 天前
10-Git 仓库蒸馏术:从代码仓库到 OpenClaw 虚拟人-蒸馏工具链
大数据·git·深度学习·神经网络·目标检测·elasticsearch·lstm
fpcc2 天前
工具使用—git diff命令分析说明
git·工具
console.log('npc')2 天前
Git 删除指定提交记录操作指南
git
随风丶飘2 天前
[特殊字符] 告别“update“和“fix bug“——Smart Git Commit LLM 让 AI 帮你写专业的 Git 提交信息
人工智能·git·bug
yanlaifan2 天前
git clone时候指定换行符
git
小小安于乱2 天前
解决IDEA的git插件pull代码冲突但右下角不提示消息问题
java·git·intellij-idea
ITKEY_2 天前
git 命令行操作回退到指定版本
git
New_Horizons6662 天前
Git 操作(使用git-commit-template)
git
慕容引刀2 天前
或许你真的需要这个Git神器:让团队提交文案终于对齐了
人工智能·git·vscode·自然语言处理·github