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

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.

主站蜘蛛池模板: 彰武县| 璧山县| 酒泉市| 兴隆县| 周至县| 逊克县| 丹东市| 开阳县| 建平县| 左贡县| 牙克石市| 阿图什市| 义马市| 尖扎县| 民和| 荣昌县| 沧州市| 玛多县| 宝鸡市| 紫阳县| 云龙县| 龙陵县| 望城县| 原阳县| 乌拉特前旗| 郴州市| 漳平市| 冀州市| 灌阳县| 铁岭市| 新野县| 新巴尔虎右旗| 乌兰察布市| 南岸区| 祁东县| 金阳县| 邯郸市| 罗田县| 个旧市| 阳朔县| 广水市|