Git(源代码管理工具)
什么是Git
- Git是一个代码管理工具, 可以对代码进行版本管理、多人协作等
为什么使用Git
从个人开发角度来说,我们可能会有以下需求:
- 代码查看: 想查看项目是怎么一步步写成的. 但是现在代码很乱很多,不方便查看
- 代码还原: 代码之前可以正确运行,改来改去项目改坏了,希望还原到之前的正确版本
本地项目如何添加Git支持
- 如果是公司项目,不需要这么做,仅适用于个人本地项目.
image.png
![12031442-cd43408e9d779549.png](https://upload-images.jianshu.io/upload_images/12031442-cd43408e9d779549.png)
image.png
如何使用PyCharm进行代码版本管理
![12031442-d8c6abc5571373af.png](https://upload-images.jianshu.io/upload_images/12031442-d8c6abc5571373af.png)
image.png
![12031442-3e7ff1381eac3660.png](https://upload-images.jianshu.io/upload_images/12031442-3e7ff1381eac3660.png)
image.png
![12031442-7d03e2d71d54a720.png](https://upload-images.jianshu.io/upload_images/12031442-7d03e2d71d54a720.png)
image.png
![12031442-7d91cd09da03c0cf.png](https://upload-images.jianshu.io/upload_images/12031442-7d91cd09da03c0cf.png)
image.png