• 在vscode中集成git bash(windows平台)

    时间:2024-04-01 19:23:54

    1.打开vscode,进入文件->首选项->设置菜单2.搜索shell,3.找到 Terminal>Integrated>Automation Shall:Windows,复制terminal.integrated.shell.windows在setings.json里更改4...

  • 使用 git bash 从 git 上下载代码到本地

    时间:2024-03-30 22:37:05

    1.新建一个文件夹用来存放下载到本地的项目文档2.点击进到刚才新建的文件夹,在空白区域点击鼠标右键,选择“Git Bash Here”,点击“Git Bash Here”之后,可以看到下面界面3.进行基础设置,输入下面两条命令:git config --global user.name "你的名字或...

  • mac 下的 bash gradle command not found

    时间:2024-03-30 20:22:57

    最近在用android studio 使用命令行打包的时候出现 bash gradle command not found这个问题,其实也就是因为自己唑gradle的环境变量给弄丢了。。但是由于来自大山的孩子对于mac不是很熟,所以不知道咋去找这个gradle的路径  ,更不知道怎么去配置了,这里就...

  • 在windows 10 bash里编写脚本

    时间:2024-03-30 07:19:13

    在windows 10 bash里编写脚本参照:https://www.howtoip.com/how-to-create-and-run-bash-shell-scripts-on-windows-10/例子由自己在windows pro build 15063 linux 子系统里测试完成如何w...

  • vscode 终端进程命令“C:\Program Files\Git\bin\bash.exe ”无法启动

    时间:2024-03-28 16:00:48

    解决方案:1、确定settings.json的terminal.integrated.shell.windows值为git的bash.exe的路径2、如果上面都设置好了,还是无法启动错误,那么应该是360程序影响,直接卸载(我关闭360程序运行无效,所以直接卸载后就可以了)...

  • windows使用bash指令

    时间:2024-03-28 11:41:17

    方法只适用于64位版本的Windows 101. 打开设置应用程序和头部更新和安全>对于开发。 在这里启动“开发者模式”开关,使开发者模式2. 接下来,打开控制面板,单击“程序”,然后单击“打开Windows功能打开或关闭”在程序和功能。在这里启用“Windows子系统为Linux(测试版)”...

  • 关于使用git bash时出现vim

    时间:2024-03-28 11:40:04

    现在做项目,一般使用的是Git来管理代码。但是我一般熟用的指令局限于git clone,git add,git commit,git push,git pull。。。偶尔出现冲突就解决解决冲突,遇到没出现过的问题就上网搜一搜。刚刚出现了一个之前也出现过的问题,当我运行git commit指令时,控制...

  • Linux文件 profile、bashrc、bash_profile区别

    时间:2024-03-28 11:17:23

    Linux系统中,有三种文件 出现的非常频繁,那就是 profile、bash_profile、bashrc 文件。 1、profile 作用 profile,路径:/etc/profile,用于设置系统级的环境变量和启动程序,在这个文件下配置会对所有用户生效。 当用户登录(login)时,文件会被...

  • Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法

    时间:2024-03-27 15:51:43

    Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法经常在ubuntu 64位下运行 ./xxx 会跳出来说没有这个文件或者目录,但是ls看又有这个文件,很是奇怪。其实原因很简单,是因为他没有32位的运行库 ia32-libs 会出这种八杆子打不着的奇怪提示。直接安装即可。ap

  • mac 下更新 .bash_profile 文件

    时间:2024-03-26 19:14:06

    1、打开terminal(终端)2、cd ~ ( 进入当前用户的home目录)3、open .bash_profile (打开.bash_profile文件,如果文件不存在就  创建文件:touch .bash_profile  编辑文件:open -e bash_profile)4、直接更改弹出的

  • 【MAC】source ~/.bash_profile只在当前shell下生效

    时间:2024-03-26 17:54:03

    引言,mac中有许多不同的shell种类,一般linux中使用的是bash,而我手上这台macbook pro用的是zsh,而在使用bash终端的时候,mac加载环境变量的顺序是:/etc/profile/etc/paths~/.bash_profile~/.bash_login~/.profile...

  • Mac 打开、编辑 .bash_profile 文件

    时间:2024-03-26 17:50:26

    刚刚遇到了如下情况,特此记录如何打开、编辑 .bash_profile 文件。.bash_profile 文件用来配置环境变量第一种方式:启动终端Terminal,直接输入~/.bash_profile会显示 No such file or directory进入当前用户的home目录输入cd ~创...

  • 找不到pytest的命令(-bash: pytest: command not found),但安装了库

    时间:2024-03-25 16:14:01

    1. 这几天想试试pytest框架,在官网查了步骤https://docs.pytest.org/en/latest/contents.html,和安装方法pip install -U pytest ---> 我电脑的实操 pip3 install -U pytest2. 但是验证pytest...

  • Windows 10安装bash和Azure CLI 2.0

    时间:2024-03-25 13:29:44

    Windows 10 系统新功能:Windows Subsystem for Linux,不用再安装双系统就可以在Windows系统下体验Linux了。官方链接:  https://msdn.microsoft.com/commandline/wsl/install_guide对于系统版本要求如下:...

  • Linux系统下安装jdk,运行java -version出现的bash: java: command not found问题

    时间:2024-03-25 12:09:54

    Linux系统下安装jdk,运行java -version出现的bash: java: command not found问题出现的情况如下尝试解决的方法出现的情况如下按照网上的方法配置好了/etc/profile下的jdk环境变量,同时也执行了source /etc/profile 命令更新文件,...

  • 【解决】-bash: ftp: command not found

    时间:2024-03-25 10:38:17

    今天在centos上使用ftp命令连接本机的FTP服务器(本机FTP服务使用Vsftpd搭建),出现如下的错误提示:-bash: ftp: command not found查询相关资料,发现很有可能是FTP命令没有安装。通过yum方式安装FTP命令:yum install ftp安装完毕后,再次使...

  • Visual Studio 外部工具中添加 git-bash

    时间:2024-03-24 18:00:31

    为什么80%的码农都做不了架构师?>>>   引言旧版的 Visual Studio 没有集成 git 工具,并且自己也习惯用 git-bash 命令行来操作,那么如何在旧版的 Visual Studio 快速打开 git-bash 终端呢?使用外部工具Tips: 请确保你已经安装...

  • 解决 bash: nvidia-smi: command not found的问题

    时间:2024-03-24 16:10:03

    0 背景最近在windows10下面安装了cuda 10.0 和cudnn,然后使用gitbash软件输入:nvidia-smi 查看信息的时候,显示下面的报错:经过去网上查阅,发现了下图中的解决办法 于是将C:\Program Files\NVIDIA Corporation\NVSMI加入到系统...

  • 【深夜急报,Win10下的Linux子系统之Bash】

    时间:2024-03-24 07:50:01

    【在Windows下进行的编程人员,你真的需要学习下Linux】手册:《Linux 命令手册(特洛伊版2.0)》链接: https://pan.baidu.com/s/1skrVSvV 密码: tmf2附Bash 手册:Shell编程手册.chm百度网盘:http://pan.baidu.com/s...

  • git/git bash here简单安装步骤

    时间:2024-03-23 21:34:18

    git下载官网地址: https://git-scm.com/downloads根据操作系统选择下载,图片默认下载为windows点击windows,会根据电脑默认选择64-bit或32-bit保存文件,运行Git-2.27.0-64-bit.exe.安装步骤可全部默认,选择Next,安装完成,在项...