Git 文件管理全攻略
1. 基础配置
在使用 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/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
超级会员免费看
订阅专栏 解锁全文

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



