pycharm配置Github

1、注册一个 gitee 账号

2、本地安装好 git

http://t.csdnimg.cn/4Pzzzhttp://t.csdnimg.cn/4Pzzz

pycharm配置github

步骤

1、在 pycharm 中配置 git 路径

Git安装链接:

安装好 git 以后,需要在 pycharm 中配置好 git 的路径,pycharm才能使用它

打开"File--Settings--Version Control--Git"

2、安装 gitee 插件

打开 "File--Settings--Plugins",搜索Gitee插件进行安装

3. 配置登录 GitHub

安装好 GitHub后,配置 gitHub,

找到"File--Settings--Version Control--GitHub",

4、将本地项目同步至GitHub

首先在本地创建一个项目,如下新建了一个名为test的项目;

然后点击"VCS---Share Project on GitHub"

注:有部分pycharm操作,点击"VCS--Import into Version Control--Share Project on GitHub"

同步完成后,到gitee查看一下,可以看到同步过来的项目

当本地项目代码有变化时,提交变化至gitee

和git指令一样,当文件发生变化时,在pycharm中也需要进行"add->commit->push"

(1)右键文件或者文件夹,按照如下方式进行add操作

(2)add 操作后,进行commit操作

(3)最后进行push操作,提交至远程仓库

6、将远程仓库同步至一台新电脑

如在远程仓库有一个项目,想把它同步至一台新的设备,则按照如下操作

(1)在GitHub复制项目链接

(2)在pycharm中打开"VCS--Checkout from Version Control--Gitee或者Git"

相关推荐
解道Jdon5 小时前
VSCode 2026年2月更新:技能市场、CLI、钩子支持
ide·windows·git·svn·eclipse·github·visual studio
darkb1rd6 小时前
gws 命令行:统一 Google 全家桶 API 管理
开源·github·好物分享
嘿嘻哈呀6 小时前
VS Code + GitHub Copilot使用技巧
github·copilot
shimly1234567 小时前
github 配置 ssh key ssh-key
运维·ssh·github
lpfasd1237 小时前
2026年第10周GitHub趋势周报
github
wsad05327 小时前
在Windows上创建Python虚拟环境并在PyCharm中使用
windows·python·pycharm
小白学大数据7 小时前
Pycharm 断点调试 Scrapy:两种实现方式总结
c++·爬虫·scrapy·pycharm
lpfasd1237 小时前
Flutter 远程构建全攻略:告别本地打包,GitHub Actions、Gitee Go 与 MobAI 三方案详解
flutter·gitee·github
无风听海7 小时前
Visual Studio 2026中Github Copilot的大模型
github·copilot·visual studio
Joehaivo飞羽8 小时前
【自荐】精美小巧的现代化终端文件管理器
linux·github·命令行