官术网_书友最值得收藏!

Running our first Git command

From now on, as a matter of convenience, we will use Windows as our platform of reference. Our screenshots will always refer to that platform. In any case, all the Git main commands we will use will work on the platforms we have previously mentioned anyway.

It's time to test our installation. Is Git ready to rock? Let's find out!

Using shell integration, right-click on an empty place on the desktop and choose the new menu item Git Bash Here. It will appear as a new MinTTY shell, providing you a Git-ready bash for Windows:

This is a typical Bash prompt: we can see the user, nando, and the host, computer. Then there's a MINGW64 string, which refers to the actual platform we are using, called Minimalist GNU for Windows (see http://www.mingw.org), and at the end we find the actual path, in a more *nix fashion, /c/Users/nando. Later, we will look at this argument in more detail.

Now that we have a new, shiny Bash prompt, simply type git (or the equivalent, git --help), as shown in the following screenshot:


If Git has been installed correctly, typing git without specifying anything else will result in a short help page, with a list of common commands (if not, try reinstalling Git).

So, we have Git up and running! Are you excited? Let's begin to type!

主站蜘蛛池模板: 包头市| 隆化县| 百色市| 罗山县| 泸州市| 二连浩特市| 长治县| 大丰市| 微山县| 桐城市| 金华市| 阿尔山市| 佛冈县| 内乡县| 海伦市| 怀来县| 房山区| 磐石市| 连平县| 澄迈县| 昌乐县| 中宁县| 海阳市| 龙门县| 靖边县| 安远县| 林芝县| 什邡市| 永新县| 团风县| 望谟县| 垣曲县| 颍上县| 黎城县| 乐至县| 湄潭县| 平原县| 浏阳市| 宜川县| 奎屯市| 兴业县|