-
克隆仓库:
git clone <repository_url>
-
添加文件到暂存区:
git add <file_name>
-
提交到本地仓库:
git commit -m "Commit message"
-
推送到远程仓库:
git push origin <branch_name>
-
拉取远程仓库更新:
git pull origin <branch_name>
-
查看当前文件状态:
git status
-
查看提交日志:
git log
-
创建新分支:
git branch <branch_name>
-
切换分支:
git checkout <branch_name>
-
合并分支:
git merge <branch_name>
-
查看远程仓库信息:
git remote -v
-
撤销工作区的修改:
git checkout -- <file_name>
-
撤销暂存区的修改:
git reset HEAD <file_name>
git常见功能代码介绍
我写代码菜如坤2024-06-23 12:21
相关推荐
阿华的代码王国4 小时前
【从0做项目】Java搜索引擎(3)PowerBI学谦4 小时前
Python in Excel高级分析:一键RFM分析WHYBIGDATA7 小时前
Hive之分区表梦醒沉醉9 小时前
HBase Shellcaihuayuan59 小时前
MySQL:MySQL8.0 JSON类型使用整理,基于用户画像的案例disgare11 小时前
Hadoop 基础原理阿里云大数据AI技术11 小时前
阿里云 MaxCompute MaxQA 开启公测,解锁近实时高效查询体验moton201712 小时前
二.数据治理流程架构饮长安千年月13 小时前
IOT-CVE-2018-17066(D-Link命令注入漏洞)leeindex13 小时前
ES 渗透查询 (Percolate query)