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

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.

主站蜘蛛池模板: 民权县| 新源县| 温州市| 浠水县| 桂东县| 富阳市| 女性| 嫩江县| 措美县| 邓州市| 张北县| 平邑县| 电白县| 襄汾县| 弥勒县| 唐海县| 镶黄旗| 理塘县| 南城县| 金堂县| 汉阴县| 泸州市| 广平县| 达拉特旗| 平舆县| 南宫市| 太谷县| 古浪县| 株洲市| 池州市| 深圳市| 泗水县| 永登县| 中西区| 绥德县| 吉林市| 保定市| 梧州市| 古交市| 吕梁市| 宜川县|