1. 访问Git官方网站https://git-scm.com/download/win下载Windows版本的Git安装程序。
2. 运行安装程序,按照向导进行安装。大部分选项保持默认即可,但需要注意以下几点:在”Select Components”步骤中,建议勾选”Git Bash Here”和”Git GUI Here”选项,方便右键菜单操作。在”Choosing the default editor used by Git”步骤中,可以选择你喜欢的文本编辑器,如Notepad++或VS Code。在”Adjusting your PATH environment”步骤中,选择”Use Git and optional Unix tools from the Command Prompt”选项,这样可以在命令行中直接使用Git命令。
3. 在”Select Components”步骤中,建议勾选”Git Bash Here”和”Git GUI Here”选项,方便右键菜单操作。
4. 在”Choosing the default editor used by Git”步骤中,可以选择你喜欢的文本编辑器,如Notepad++或VS Code。
5. 在”Adjusting your PATH environment”步骤中,选择”Use Git and optional Unix tools from the Command Prompt”选项,这样可以在命令行中直接使用Git命令。
6. 安装完成后,打开命令提示符或Git Bash,输入以下命令验证安装:
• 在”Select Components”步骤中,建议勾选”Git Bash Here”和”Git GUI Here”选项,方便右键菜单操作。
• 在”Choosing the default editor used by Git”步骤中,可以选择你喜欢的文本编辑器,如Notepad++或VS Code。
• 在”Adjusting your PATH environment”步骤中,选择”Use Git and optional Unix tools from the Command Prompt”选项,这样可以在命令行中直接使用Git命令。
1. 在PyCharm欢迎界面,选择”Get from Version Control”。
2. 或者,在已打开的项目中,选择”File” > “New” > “Project from Version Control”。
3. 在URL字段中输入Git仓库的地址(HTTPS或SSH)。
4. 选择本地目录,然后点击”Clone”。