当前位置:   article > 正文

Github代码提交(使用Git和TortoiseGit)_github操作gittortise

github操作gittortise

Github代码提交(使用Git和TortoiseGit)

预安装

预先安装GitTortoiseGit两个软件,用于图形化提交(先装Git再装TortoiseGit)。
安装成功

创建项目

在Github中找到仓库位置。
Github项目仓库
创建
记下HTPPS。
HTPPS

克隆项目到本地

在本地创建一个文件夹,用于维护代码,在文件夹中克隆项目。
克隆
输入刚刚得到的HTTPS。
在这里插入图片描述

提交代码

ADD(预添加代码到本地)

预先添加
点击OK:
ok

Commit(提交)

在这里插入图片描述
在这里插入图片描述
在这里可以写上代码的提示信息。

Push(上传)

上传
上传成功后close:
close

忽视不必要文件

在文件夹里创建**.gitignore**(文件名必须一样),add时就会自动筛选**.gitignore**里的内容,文件内容如下:

# Build and Release Folders
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/

# Other files and folders
.settings/

# Executables
*.swf
*.air
*.ipa
*.apk

#过滤掉不想要文件和文件夹
*.exe
*.sln
*.vcxproj
*.filters
*.user
*.suo
*.db
*.ipch
Debug/
.vs
Release/

# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/1007282
推荐阅读
相关标签
  

闽ICP备14008679号