git bash中带空格的文件夹以及文件的处理

空格用'\ '表示,输入的时候,是不需要单引号的 

 

total 338
drwxr-xr-x 9 Administ Administ 4096 Aug 24 23:53 HDTHelper
drwxr-xr-x 1 Administ Administ 4096 Oct 25 03:15 HDTTests
drwxr-xr-x 11 Administ Administ 4096 Sep 15 00:14 HDTUninstaller
drwxr-xr-x 1 Administ Administ 4096 Mar 5 2015 HDTUpdate
drwxr-xr-x 42 Administ Administ 12288 Oct 25 2015 Hearthstone Deck Tracker
-rw-r--r-- 1 Administ Administ 2977 Aug 24 23:53 Hearthstone Deck Tracker.sln
-rw-r--r-- 1 Administ Administ 2106 Aug 24 23:53 Hearthstone Deck Tracker.sln.DotSettings
-rw-r--r-- 1 Administ Administ 9216 Feb 3 2015 Hearthstone Deck Tracker.suo
-rw-r--r-- 1 Administ Administ 570880 Sep 28 00:53 Hearthstone Deck Tracker.v11.suo
-rw-r--r-- 1 Administ Administ 3263 Oct 25 02:19 README.md
-rw-r--r-- 1 Administ Administ 23388 Feb 10 2015 Rebracer.xml
-rw-r--r-- 1 Administ Administ 36050 Oct 25 02:31 UpgradeLog.htm
drwxr-xr-x 1 Administ Administ 4096 Oct 25 03:15 licenses
drwxr-xr-x 7 Administ Administ 4096 Oct 25 03:15 packages
drwxr-xr-x 1 Administ Administ 4096 Aug 24 23:53 raw-assets

 

进入带空格的目录

cd Hearthstone\ Deck\ Tracker

 

total 375
drwxr-xr-x 1 Administ Administ 4096 Oct 20 00:01 API
-rw-r--r-- 1 Administ Administ 265 Aug 24 23:53 App.config
-rw-r--r-- 1 Administ Administ 1606 Oct 19 23:35 App.xaml
-rw-r--r-- 1 Administ Administ 2490 Oct 25 03:15 App.xaml.cs
-rw-r--r-- 1 Administ Administ 25012 Oct 25 03:28 Config.cs
drwxr-xr-x 1 Administ Administ 12288 Oct 19 23:36 Controls
-rw-r--r-- 1 Administ Administ 9441 Oct 25 03:15 Core.cs
-rw-r--r-- 1 Administ Administ 15206 Oct 25 03:15 DeckExporter.cs
-rw-r--r-- 1 Administ Administ 27164 Oct 25 03:15 DeckImporter.cs
-rw-r--r-- 1 Administ Administ 5489 Oct 25 03:15 DeckList.cs
drwxr-xr-x 1 Administ Administ 8192 Oct 25 03:15 Enums
drwxr-xr-x 1 Administ Administ 4096 Oct 20 00:02 Errors
drwxr-xr-x 16 Administ Administ 4096 Oct 25 03:15 Files
drwxr-xr-x 18 Administ Administ 4096 Oct 25 03:28 FlyoutControls
-rw-r--r-- 1 Administ Administ 47977 Oct 25 03:15 GameEventHandler.cs
-rwxr-xr-x 1 Administ Administ 8704 Aug 24 23:53 HDTHelper.exe
-rwxr-xr-x 1 Administ Administ 12800 Aug 24 23:53 HDTUninstaller.exe
-rwxr-xr-x 1 Administ Administ 12800 Mar 5 2015 HDTUpdate.exe
drwxr-xr-x 1 Administ Administ 0 Feb 10 2015 HearthStats
drwxr-xr-x 1 Administ Administ 4096 Oct 25 03:28 Hearthstone
-rw-r--r-- 1 Administ Administ 162368 Oct 25 03:28 Hearthstone Deck Tracker.csproj
-rw-r--r-- 1 Administ Administ 3673 Oct 25 03:15 IGameHandler.cs
drwxr-xr-x 961 Administ Administ 327680 Oct 25 02:44 Images
drwxr-xr-x 1 Administ Administ 4096 Oct 25 03:23 LogReader
drwxr-xr-x 1 Administ Administ 4096 Oct 20 00:02 Plugins
drwxr-xr-x 1 Administ Administ 4096 Aug 24 23:53 Properties
drwxr-xr-x 1 Administ Administ 0 Oct 19 23:36 Protocol
drwxr-xr-x 10 Administ Administ 4096 Oct 20 00:01 Replay
drwxr-xr-x 1 Administ Administ 8192 Oct 19 23:55 Resources
drwxr-xr-x 7 Administ Administ 4096 Oct 25 03:15 Stats
-rw-r--r-- 1 Administ Administ 3875 Oct 19 23:36 TrayIcon.cs
-rw-r--r-- 1 Administ Administ 3931 Oct 19 23:36 TurnTimer.cs
drwxr-xr-x 1 Administ Administ 4096 Oct 25 03:28 Utility
-rw-r--r-- 1 Administ Administ 151 Oct 25 03:23 Version.xml
drwxr-xr-x 1 Administ Administ 8192 Oct 25 03:28 Windows
drwxr-xr-x 5 Administ Administ 4096 Sep 28 00:50 bin
-rw-r--r-- 1 Administ Administ 1118 Oct 25 03:35 dir.txt
-rw-r--r-- 1 Administ Administ 0 Oct 25 03:36 file.tet
drwxr-xr-x 4 Administ Administ 0 Nov 18 2014 obj
-rw-r--r-- 1 Administ Administ 218 Oct 25 03:15 packages.config

 

添加带空格的文件

git add Hearthstone\ Deck\ Tracker.csproj

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值