本篇体验Git Bash在Windows操作系统上的用法。什么是Bash?是一个Shell环境,Bourne Again Shell的缩写。安装git for windows→ http://git-for-windows.github.io/→ Download,选择一个合适的版本→ 安装→ 安装完后有Git Bash, Git CMD, 和 Git GUI这个三个应用程序→ 运行Git Bash,检查当前版本git version→ 退出exit安装Notepad++→ notepad-plus-plus.org→ download,选择合适的版本→ 安装在Bash中打开Notepad++→ 找到not...
昨天我第一次开启了上下篇分开的格式——本着我越来越短的特性,可能以后会出现三回、四回讲述同一课题的情况......到时候再说吧——反正我说日更也没说要长......虽然也没人看%>_<% 不过之前还真有人看了,还给我发邮件说工作的事情——简直受宠若惊——不过貌似在看清我的真面目之后就不再联系我了......T_T 没事,反正有人看就好,我来接着写博客了。那么今天的废话就先说到这里,开始Github for windows的下篇。 What We Did 嗯...
配置文件中 profiles 节点补充配置{"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b7}","hidden": false,"name": "git bash","commandline": "D:\\Git\\bin\\bash.exe"
}调整后完整的 profiles.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation{"$schema": "https://aka.ms/terminal-profiles-sc...
windows下编写的bash脚本拖入linux环境下脚本出错之编码问题 脚本经常在windows下写好,拖入到linux环境中运行。但是在运行过程中,经常出现编码问题,这里记录一下。方便自己日后查看,或者给刚好遇到这样的问题的同学一个尝试的方法。在linux环境下vim 进入拖入的bash脚本。执行命令:set ff=unix本文出自 “做最好的自己” 博客,请务必保留此出处http://qiaopeng688.blog.51cto.com/3572484/1951374原文:http://qiaope...
在开发过程遇到项目依赖很多服务,想在本地调试,但是idea启动这么多服务很费事,而且平时也不需要修改,但是服务之间有依赖,这时候写了个自动启动当前目录jar包(spring boot)的脚本,
把jar包(spring boot)打好,放到目录里,run下就可以启动所有的jar包了!
用了git安装的时候带的mintty
文件名: run.sh#!/bin/bash
allJar=`ls *.jar`
active="local"
if [ -n "$1" ]
thenactive=$1
fi
echo "active = $active"
for jar in $allJar
doec...
解决方法(引用网站上的原话)如下:
如果你在 Windows 上通过 minTTY 使用 Git Bash,交互提示符并不工作。你必须通过 winpty vue.cmd create hello-world 启动这个命令。不过,如果你仍想使用 vue create hello-world,则可以通过在 ~/.bashrc 文件中添加以下行来为命令添加别名。 alias vue='winpty vue.cmd' 你需要重新启动 Git Bash 终端会话以使更新后的 bashrc 文件生效
其中 .bashrc文件是位于git/etc文件夹下的 bash.b...
root@PC-RENGUOQIANG:/usr/sbin# /etc/init.d/mysql start
* Starting MySQL database server mysqld [ OK ]
root@PC-RENGUOQIANG:/usr/sbin# ps -ef | grep mysql
mysql 171 1 0 11:58 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 641 171 0 11:58 ? 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysql...
假设你的conda安装目录是C:\Anaconnda3,第一步你需要将该路径和C:\Anaconda3\Scripts添加到环境变量中去。之后用文本编辑器打开C:\Anacondda3\Scripts\conda并添加如下命令即可#!/usr/bin/env bash
C:/Anaconda3/Scripts/conda.exe "$@"如果在输入conda activate命令式出现如下报错信息IMPORTANT: You may need to close and restart your shell after running conda init.你需要首先运行下面这行命令(亲测有效)source activate
前言生成公私钥是为了让我们在远端操作时,更加方便步骤在Linux或Mac OS终端或Windows Git Bash, 执行ssh-keygen命令生成SSH公钥和私钥 ssh-keygen -t rsa填写SSH密钥存放目录, 或直接回车存在在默认位置: 直接回车输入SSH密钥的使用密码并记住, 每次下载和上传时会用到此密码; 或直接回车不设置密码 输入使用密码(两次一致)查看ssh密钥 cat ~/.ssh/id_rsa.pub复制密钥到配置地并保存
**前提:双系统(windows8.1 + ubuntu16.04) 为了图省事!!!!!!!!!!!! 在windows磁盘管理器直接删除ubuntu分区,即:右击删除红色框里的磁盘 (http://www.xitongcheng.com/jiaocheng/win8_article_32029.html) 之后开机出现 Minimal BASH-like line editing is supported…就是关于 grub>的,下载了EasyBCD进行了一系列操作,发现没有用。(https://blog.csdn.net/Liuss2/article/details/80384563)后来才发现 电脑...
打开对应得文件夹右键选择 Git Bash Here然后直接执行shell脚本即可
问题:
在git bash下输入git log,查看log记录的时候中文显示不出来
解决方案:
网上查了很多解决方法,逐个尝试
1.尝试 git config --global core.quotepath false
解决不了
2.尝试 git config --global core.pager more
问题解决
注意settings.json应该是类似于这样的。"defaultProfile"字段在"globals"上方。
调整 defaultProfile 为bash配置对应的 guid.
{"$schema": "https://aka.ms/terminal-profiles-schema","defaultProfile" : "{1c4de342-38b7-51cf-b940-2309a097f589}","globals" : {"alwaysShowTabs" : true,"initialCols" : 120,"initialRows" : 30,"keybindings" : [{"command" : "closeTab","keys" : ["ctrl+w"具体配置文件参考博文Windows Termi...
参考以下两种解决:
1.zipWhile using git-bash, you may need the zip command to zip files. Then you will get error like “command not found“. This is because git-bash is really just a cut down version of mingw. Fortunately you can manually install the command yourself, not only zip, but any command you can get from gnuwin32.Here are the steps you can follow.1. Go to the following link
https://sour...
酌情修改// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation{"$schema": "https://aka.ms/terminal-profiles-schema","defaultProfile": "{98786898-7409-58c7-b39d-196cfaf071e4}","profiles":[{// Make changes here to the powershell.exe profile"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",...