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

Summary

In this chapter, you learned that Git is not so difficult to install, even on a non-Unix platform, such as Windows.

Once you have chosen a directory to include in a Git repository, you can see that initializing a new Git repository is as easy as executing a git init command. For now, don't worry about saving it on a remote server and so on. It's not mandatory to save it; you can do this when you need, preserving the entire history of your repository. This is a killer feature of Git and DVCS in general. You can comfortably work offline and push your work to a remote location when the network is available, without any hassle.

Lastly, we discovered one of the most important character traits of Git: it will do nothing if you don't mention it explicitly. You also learned a little bit about the add command. We were obliged to perform a git add command for a file when we committed it to Git for the very first time. Then, we used another command when we modified it. This is because if you modify a file, Git does not expect that you want it to be automatically added to the next commit (and it's right to assume this, I'd say).

In the next chapter, we will look at some fundamentals of Git.

主站蜘蛛池模板: 乌拉特前旗| 特克斯县| 深水埗区| 二连浩特市| 石屏县| 衡东县| 汉沽区| 江阴市| 广饶县| 韶关市| 巴南区| 高清| 东山县| 绵竹市| 芮城县| 辉南县| 江西省| 呼图壁县| 留坝县| 墨江| 定西市| 武威市| 建水县| 蒲江县| 莲花县| 同心县| 嘉鱼县| 周宁县| 临沂市| 扎囊县| 东平县| 台山市| 勃利县| 岐山县| 罗山县| 尼勒克县| 广丰县| 贡觉县| 柳林县| 通许县| 泾源县|