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

Committing the added file

At this point, Git knows about file.txt, but we have to perform another step to fix the snapshot of its content. We have to commit it using the appropriate git commit command. This time, we will add some flavor to our command, using the --message (or -m) subcommand, as shown here:

With the commit of file.txt, we have finally fired up our repository. Having done the first commit (also known as the root-commit, as you can see in the screenshot), the repository now has a master branch with a commit inside it. We will play with branches in the forthcoming chapters. Right now, think of it as a path of our repository, and keep in mind that a repository can have multiple paths that often cross each other.

主站蜘蛛池模板: 邳州市| 乡城县| 汝州市| 福安市| 鄄城县| 鸡东县| 盐池县| 盐边县| 鹤庆县| 乐山市| 繁昌县| 河北区| 阳江市| 洮南市| 申扎县| 拉孜县| 石嘴山市| 崇义县| 巴马| 垦利县| 遂昌县| 黎平县| 驻马店市| 三台县| 温宿县| 大化| 乌拉特后旗| 本溪| 南宫市| 桐城市| 宜城市| 阳城县| 嘉兴市| 即墨市| 宝坻区| 沅江市| 桂平市| 略阳县| 汉阴县| 岫岩| 台山市|