git bash for windows是一款在windows平台下使用Git命令行的终端工具软件,支持一些基本的linux命令,非常好用。
下面是官方的Git BASH软件说明:
Git for Windows provides a BASH emulation used to run Git from the command line. *NIX users should feel right at home, as the BASH emulation behaves just like the “git” command in LINUX and UNIX environments.
git常用命令介绍:
1、创建git资源库
git init –bare 库名称
2、在用户文件夹下把资源clone下来
git clone <仓库地址或目录> :/用户目录/<仓库名>
3、创建一个文件,纳入到版本控制中。
git add <文件名>
4、提交到本地版本库中。
git commit <文件名>
5、推送到远程共享库中
git push origin master
6、切换目录(新用户),获取最新的文件。
git pull
7、查看git仓库中各文件的当前状态
git status
软件下载:https://www.git-scm.com/downloads
点击for windows版本下载即可