配置git 账户密码时bash:$:command not found

配置git 账户密码时bash:$:command not found

在配置git账户和用户名时:

$ git config --global user.name “名字”

$ git config --global user.email 邮箱

出现如下错误。

在这里插入图片描述

这是因为操作的位置不对,要在命令行中到达git安装的位置:

我的路径是: D:\javaTools\Git

cd d

cd javaTools

cd Git

一步步到达了git安装位置,然后运行;

出现如下,就是成功了。
在这里插入图片描述
转载自–
https://www.cnblogs.com/daguozb/p/9632932.html

猜你喜欢

转载自blog.csdn.net/yjboxes/article/details/121131970