First, install git
Not installed git from git official website to download windows version of git [generally use the default settings: one next to go, git installed! ]
Second, the installation tool TortoiseGit
To TortoiseGit official website to download the corresponding package to install [TortoiseGit general use default settings: one next to go, TortoiseGit installed! ]
Third, the installation TortoiseGit-LanguagePack Chinese language pack [ can not install a language pack ]
To TortoiseGit official website to download the corresponding TortoiseGit-LanguagePack package to install [generally use the default settings: one next to go, TortoiseGit-LanguagePack installed! After the installation is complete] language pack, right on the desktop, select Chinese (Simplified) (China) in Language, click the Apply button, OK button changed after the Chinese, as shown:
Fourth, the cloning project
One way : xxx file in the directory right Git Clone [or Chinese language pack: Git clone] paste the URL address and then click OK clone Once completed, the project dragged HBuilderX on it, as shown:
Chinese language pack installed in the form of:
Another way : in HBuilderX install git plugin, using plug-ins to import project [ If the installation TortoiseGit when HBuilderX open about the need to restart HBuilderX ], as shown:
Fifth, to update the above items to local GitHub
方式一:右键项目代码文件夹,选择 Git(G) 再选择 获取...(E),弹出获取提示框直接点击确定,进度提示框里显示成功【代码更新成功】关闭进度提示框,如图:
方式二:右键项目代码文件夹,选择 Git(G) 再选择 拉取...(P),弹出拉取提示框直接点击确定,进度提示框里显示成功【代码更新成功】关闭进度提示框,如图:
六、上传项目代码
右键要提交的代码文件夹,选择Git提交,如图:
第一个红框写好日志信息,第二个红框选择要提交的文件,点击提交,如图:
提交后弹出git命令进度提示框,再点击推送,弹出推送提示框,直接点击确定,弹出进度提示框显示成功【代码提交成功】,如图:
提交后如果出现这样的错误,点击拉取,弹出拉取提示框,直接点击确定,把 GitHub 上面的项目克隆到本地,关闭进度提示框,如图:
再右键要提交的代码文件夹,选择 Git(G) 再选择 推送...(H),直接点击确定,弹出进度提示框,显示成功【代码提交成功】如图: