美文网首页
Git 常用命令

Git 常用命令

作者: 貳條 | 来源:发表于2020-04-12 23:53 被阅读0次

1. 查看用户名和地址

gitconfiguser.name
gitconfiguser.email

2. 修改用户名和地址

git config --global user.name "your name"
git config --global user.email "your email"

3. 其他常用命令

查看配置

git config --list 

重置用户名和邮箱

git config --global --replace-all user.email "输入你的邮箱" 
git config --global --replace-all user.name "输入你的用户名"

概念

git

版本控制工具,支持该工具的网站有Github、BitBucket、Gitorious、国内的osChina仓库、csdn仓库等等。

shell

是linux、unix系统的外壳,也可以理解为命令行,就是你输入并执行命令的地方,git通过命令行和图形界面两种方式使用shell。

bash

是shell的一种,最常用的shell之一。

git Bash

方便你在windows下使用git命令的模拟终端(windows自带的cmd功能太弱)linux、unix可以直接使用git。

git shell

它是安装了git的shell,bash是一种shell。

用证书把 GitHub 密码缓存在 Git

git config --global credential.helper wincred

相关文章

网友评论

      本文标题:Git 常用命令

      本文链接:https://www.haomeiwen.com/subject/lvxvaxtx.html