我有一台windows计算机,开始学习git和github,我还下载了(GitBash)。它也支持linux命令,而且我希望在GitBash中使用linux命令,因为我更喜欢使用Linux命令,而不是windows命令。那么我可以使用Linux命令吗?
DELL@DESKTOP-N2DUH6T MINGW64 ~
$ cd desktop
DELL@DESKTOP-N2DUH6T MINGW64 ~/desktop
$ ls
'Android Studio.lnk'*
'Eclipse IDE for Java Developers - 2020-12.lnk'*
FINAL450.xlsx
'Internet Download Manager.lnk'*
'MySQL Workbench 8.0 CE.lnk'*
'New Microsoft Word Document.docx'
ayushGitRepos/
desktop.ini
'jai new resume'/
'mass infotech letterhead.docx'
'sublime_text - Shortcut.lnk'*
DELL@DESKTOP-N2DUH6T MINGW64 ~/desktop
$ cd ayushGitRepos
DELL@DESKTOP-N2DUH6T MINGW64 ~/desktop/ayushGitRepos
$ ls
TO-DO-list/
DELL@DESKTOP-N2DUH6T MINGW64 ~/desktop/ayushGitRepos
$ cd TO-DO-list/
DELL@DESKTOP-N2DUH6T MINGW64 ~/desktop/ayushGitRepos/TO-DO-list (main)
$ ls
README.md _config.yml index.html script.js style.css
DELL@DESKTOP-N2DUH6T MINGW64 ~/desktop/ayushGitRepos/TO-DO-list (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean发布于 2021-04-14 12:04:11
您可以在GitBash中的Windows中使用一些bash命令,但也可以在Windows上安装Ubuntu (在' on‘中,而不是’在‘旁边’中)。
您可以从Microsoft获得Ubuntu,也可以使用官方的Canonical(Ubuntu的制造者) 在Windows 10上安装Ubuntu
美妙的Ubuntu终端可以免费在Windows 10上使用。 正如任何Linux用户所知道的那样,它是发生奇迹的命令行终端。它非常适合文件管理、开发、远程管理和上千个其他任务。 用于Windows的Ubuntu终端具有许多与使用Ubuntu上的终端相同的特性:
然后,您可以使用Ubuntu的终端或者用新的窗口终端设置它。
https://stackoverflow.com/questions/67091235
复制相似问题