一. totorisgit可视化工具push&pull文件

1.安装下载

TortoiseGit,Git客户端,32/64位最新版及对应的语言包下载地址:https://tortoisegit.org/download/

totorisgit与git两种方式push&pull文件

接着下载中文语言包如下:

totorisgit与git两种方式push&pull文件

安装方法,不停地下一步,就行
2.配置

①首先在新建一个文件夹,如:D:\python\ws ,用它来存储项目

②打开刚才建的文件夹,右键鼠标,找到totorisGit(T),点击选择“设置“,就可以看到配置页面如下(把每周自动更新版本这个勾不选),还需要指定 Git.exe 文件的路径,  如 我的git路径:"D:\Program\Git\bin"。完成后,点击应用,确定关闭对话框。如下所示:

totorisgit与git两种方式push&pull文件

③可以点击”常规设置“,然后在其下点击” 右键菜单 “,配置常用右键菜单如下:

totorisgit与git两种方式push&pull文件

④配置用户名和email,以及后面需要的密码如下:

totorisgit与git两种方式push&pull文件

⑤直接修改设置自己密码,并记住,第一次上传文件需要密码(当然也可以修改用户名和密码)步骤如下:

totorisgit与git两种方式push&pull文件

totorisgit与git两种方式push&pull文件

totorisgit与git两种方式push&pull文件

    以上 完成后保存,确定即可。

     当你第一次推送项目到GitHub或者coding等在线仓库时,会记住你输入的用户名和密码

3.totorisgit进行pull和push

pull步骤:

在你创建的文件夹中,右击选”Git克隆“后,如下图:

totorisgit与git两种方式push&pull文件

完成后点击确定,就把文件pull到你的位置了

push步骤:

①比如我又新建一个文件夹test,右击这个文件夹,点击选择”Git在这里创建版本库(Y)“后如下图,然后点击确定

totorisgit与git两种方式push&pull文件

totorisgit与git两种方式push&pull文件

这时文件夹中有一个.git文件夹(有可能是隐藏看不见的,需要你在”查看“中设置)结果如图:

totorisgit与git两种方式push&pull文件

 

②新建一个test.txt文件,将它push到coding云端仓库中,步骤如下:

右键点击 totorisgit(T)选项后 选择”添加“后,如图:

totorisgit与git两种方式push&pull文件

③提交到本地仓库,如下图

totorisgit与git两种方式push&pull文件

totorisgit与git两种方式push&pull文件

④提交到本地仓库后,接下点击”推送“ ,将它推送到github或者coding的云端仓库;先复制github或者coding的仓库的位置,如下:

totorisgit与git两种方式push&pull文件

totorisgit与git两种方式push&pull文件

点击确定后,如下图,已经push到仓库了

totorisgit与git两种方式push&pull文件

⑤查看打开上传的云端仓库,验证是否有test.txt文件,如下图成功push:

totorisgit与git两种方式push&pull文件

 

二.git命令行push&pull文件,参考下面链接

链接:https://www.cnblogs.com/KKSoft/p/8182589.html

相关文章:

  • 2021-11-01
  • 2021-08-26
  • 2022-03-08
  • 2021-10-21
  • 2021-11-04
  • 2021-08-07
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案