git 工具窗口使用命令
最编程
2024-10-15 12:34:09
...
git工具的使用
- 配置用户身份
git config --global user.name = ''
git config --global user.email= ''
- 初始化仓库
git init 'path路径'
- 提交暂存区
git add . // .:代表当前目录
如何在本地去掉:
git restore -staged 文件名
- 提交本地库
git commit -m ' 提交填写信息'
当提交出现错误:
git reset _hard '提交ID' // ID 在 日志中查询前7位
- 查看历史
git log
- 回溯历史
git reflog
- 查看分支
git branch
- 创建分支
git branch '分支名称'
- 切换分支
git checkout '分支'
- 分支合并
git merge '分支'
- 冲突解决
1.git pull
2.git push
3.解决冲突(人工变更文件)
4.git push
-
查看git配置
git config -L(小写)
-
校验状态
git status
-
查看远程仓库
-
git remote
-
创建远程仓库(origin )
git remote add origin 'git仓库网址'
-
推送远程仓库
-
git push -u origin master
-
远程拉取
git pull
上一篇: NIO学习笔记
推荐阅读
-
git 工具窗口使用命令
-
工具的服务端口已关闭。要使用命令行调用工具,请打开工具 -> 设置 -> 安全设置,将服务端口开启
-
全面解析Linux网络状态工具ss命令的使用方法
-
轻松使用 AWS CloudShell - 实现快速简便的 AWS 命令操作工具
-
Git 常用命令和使用 IDEA 集成 Gitee
-
git 使用合并命令将开发分支中的 mian.js 文件、src 下的 vuex 文件夹和 config 文件夹合并到单独的主分支中
-
音视频高级开发人员指南注释-5]使用 FFmpeg 命令行工具
-
在 Android 上使用 Git - 免费工具和指南
-
如何正确使用 AltTab mac(窗口切换工具)的详细信息
-
Github与本地仓库建立链接、Git命令(或使用Github桌面应用)