Git简单使用

一、git账号配置

git 复制代码
git config --global user.name your_name
git config --global user.email your_email

二、指定文件夹下拉取远程代码

创建工作目录,拉去远程代码

git 复制代码
git clone https://

三、创建新分支

git 复制代码
查看现有分支 git branch
创建新分支 git branch local_branch
切换到新分支 git checkout local_branch
拉去远程代码到新分支 git pull origin remote_branch:local_branch
相关推荐
vistaup1 小时前
windows git 更新当前目录下所有的文件(非递归)
windows·git
王码码20352 小时前
Flutter for OpenHarmony:Flutter 三方库 algoliasearch 毫秒级云端搜索体验(云原生搜索引擎)
android·前端·git·flutter·搜索引擎·云原生·harmonyos
Irene19915 小时前
Git 命令汇总表(基于一次完整的 Git 实战经验整理,涵盖从安装配置到日常开发、问题排查的所有常用命令)
git·常用命令
q5431470876 小时前
Redis Desktop Manager(Redis可视化工具)安装及使用详细教程
redis·git·bootstrap
素雨迁喜8 小时前
Linux平台下git工具的使用
linux·运维·git
Irene199110 小时前
Windows环境,VS Code 中 Git 配置指南
git·基础配置
Yang-Never11 小时前
AI Code -> Windows电脑安装Claude
开发语言·windows·git
Irene199111 小时前
2026 前端开发 Windows 安装 Git 配置指南(有实际安装过程参考:适配版本 the latest 2.53.0(2) x64 )
前端·windows·git
早起的年轻人11 小时前
告别Git仓库臃肿:一招解决Maven target目录误提交问题
java·git·maven
悠然大月季1 天前
git 怎么导出提交历史,文件是乱码
git·git导出历史记录·git导出历史乱码