Git文件管理全攻略
1. Git核心功能概述
Git拥有丰富的功能,但我们最常用的核心功能包括将文件暂存、提交到本地仓库以及创建分支等操作。接下来,我们将详细介绍这些功能及相关操作。
2. 基本配置
在使用Git时,我们可能需要进行一些配置操作。
- 设置默认编辑器 :可以通过以下命令设置默认编辑器,例如将其设置为 vi :
ocs@ubuntu:~/ocs$ git config --global core.editor vi
- 查看当前配置 :使用
git config --list命令查看当前的配置信息:
ocs@ubuntu:~/ocs$ git config --list
user.name=Bo Rothwell
user.email=bo@onecoursesource.com
core.editor=editor_name
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://gitlab.com/borothwell/ocs.git
remote.origin.fetch=+refs/heads/*:refs/re
超级会员免费看
订阅专栏 解锁全文
1070

被折叠的 条评论
为什么被折叠?



