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

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.

主站蜘蛛池模板: 军事| 仙居县| 安庆市| 兴隆县| 鄂州市| 隆安县| 娄烦县| 红河县| 商城县| 沁源县| 当阳市| 乌鲁木齐县| 高雄县| 普定县| 布尔津县| 平果县| 崇明县| 昌平区| 太仓市| 景宁| 呼图壁县| 贺兰县| 丰原市| 扶余县| 崇阳县| 长子县| 芦山县| 玉林市| 汤阴县| 正阳县| 永丰县| 赣州市| 安远县| 百色市| 安多县| 靖宇县| 普格县| 南投市| 景东| 大同市| 巴里|