1、下载git-for-windows

(1)常用的GitHub客户端msysgit,也就是git-for-windows。

(2)登录官网 https://git-for-windows.github.io/,如下,单击Download按钮下载。

(3)我下载了最新版64位:Git-2.11.0-64-bit.exe

2、安装git-for-windows

(1)单击Next

(2)选择安装目录

(3)勾选创建桌面快捷方式、Git Bash、Git GUi、已经目录和后缀关联等,如图。

(4)默认即可,单击Next

(5)在“Adjusting your PATH environment”选项中,默认选项是“Use Git from the Windows Command Prompt”,这样在Windows的命令行cmd中也可以运行git命令了,点击“Next”。

(6)配置行结束标记,保持默认“Checkout Windows-style, commit Unix-style line endings”.

(7)在终端模拟器选择页面,默认即可,配置后Git Gash的终端比较易用。然后点击“Next”按钮

(8)最后配置Git额外选择默认即可。

(9)安装成功

(10)安装Git完成之后,会在桌面创建Git Bash快捷方式,在任意目录下右击鼠标可以找打Git Bash Here的选项。

3、git配置

(1)   本地创建SSH key

ssh-keygen -t rsa -C "your_email@youremail.com"

一路回车,不需要输入。

(2) 成功的话会在~/下生成.ssh文件夹,进去,复制id_rsa.pub文件内容

(3)添加SSH   Key

单击“Add SSH key”

(3)为了验证是否成功,在git bash下输入:

$ ssh -T git@github.com

如果是第一次的会提示是否continue,输入yes就会看到:You've successfully authenticated, but GitHub does not provide shell access 。这就表示已成功连上github。

4、git简单应用

Administrator@Win7 MINGW64 /d/code

$ git clone https://github.com/ihadron/jdbc.git

Cloning into 'jdbc'...

remote: Counting objects: 5, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0

Unpacking objects: 100% (5/5), done.

Administrator@Win7 MINGW64 /d/code

$ cd jdbc

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ ls -a

./  ../  .git/  .gitignore  LICENSE  README.md

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ git add .

warning: LF will be replaced by CRLF in WebContent/index.html.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/login.html.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/login.jsp.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/password.jsp.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/regist.html.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/regist.jsp.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/update.jsp.

The file will have its original line endings in your working directory.

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ git commit -m "jdbc v1.0"

[master c509c83] jdbc v1.0

19 files changed, 417 insertions(+)

create mode 100644 .classpath

create mode 100644 .project

create mode 100644 .settings/.jsdtscope

create mode 100644 .settings/org.eclipse.jdt.core.prefs

create mode 100644 .settings/org.eclipse.wst.common.component

create mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml

create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container

create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name

create mode 100644 WebContent/META-INF/MANIFEST.MF

create mode 100644 WebContent/WEB-INF/web.xml

create mode 100644 WebContent/index.html

create mode 100644 WebContent/login.html

create mode 100644 WebContent/login.jsp

create mode 100644 WebContent/password.jsp

create mode 100644 WebContent/regist.html

create mode 100644 WebContent/regist.jsp

create mode 100644 WebContent/ulist.jsp

create mode 100644 WebContent/update.jsp

create mode 100644 mydb.sql

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ git push -u origin master

Username for 'https://github.com': ihadron

Counting objects: 25, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (20/20), done.

Writing objects: 100% (25/25), 6.33 KiB | 0 bytes/s, done.

Total 25 (delta 5), reused 0 (delta 0)

remote: Resolving deltas: 100% (5/5), done.

To https://github.com/ihadron/jdbc.git

7a049ec..c509c83  master -> master

Branch master set up to track remote branch master from origin.

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$
---------------------
作者:程裕强
来源:CSDN
原文:https://blog.csdn.net/chengyuqiang/article/details/54178683
版权声明:本文为博主原创文章,转载请附上博文链接!

1-1.flutter学习笔记(一)git入门(msysgit图文安装)的更多相关文章

  1. Flutter学习笔记(22)--单个子元素的布局Widget(Container、Padding、Center、Align、FittedBox、Offstage、LimitedBox、OverflowBox、SizedBox)

    如需转载,请注明出处:Flutter学习笔记(22)--单个子元素的布局Widget(Container.Padding.Center.Align.FittedBox.Offstage.Limited ...

  2. Flutter学习笔记(1)--环境安装

    flutter最近显得格外的火,公司的同事也一直在谈论flutter,感觉自己不学学就要失业了...所以决定顺应潮流学习以下flutter,做一下学习笔记,希望可以给需要的同学带来一些帮助~ 正文为f ...

  3. Hadoop学习笔记(1) ——菜鸟入门

    Hadoop学习笔记(1) ——菜鸟入门 Hadoop是什么?先问一下百度吧: [百度百科]一个分布式系统基础架构,由Apache基金会所开发.用户可以在不了解分布式底层细节的情况下,开发分布式程序. ...

  4. iOS学习笔记-地图MapKit入门

    代码地址如下:http://www.demodashi.com/demo/11682.html 这篇文章还是翻译自raywenderlich,用Objective-C改写了代码.没有逐字翻译,如有错漏 ...

  5. Flutter学习笔记(3)--Dart变量与基本数据类型

    一.变量 在Dart里面,变量的声明使用var.Object或Dynamic关键字,如下所示: var name = ‘张三’: 在Dart语言里一切皆为对象,所以如果没有将变量初始化,那么它的默认值 ...

  6. Flutter学习笔记(4)--Dart函数

    如需转载,请注明出处:Flutter学习笔记(4)--Dart函数 Dart是一个面向对象的语言,所以函数也是对象,函数属于Function对象,函数可以像参数一样传递给其他函数,这样便于做回调处理: ...

  7. Flutter学习笔记(5)--Dart运算符

    如需转载,请注明出处:Flutter学习笔记(5)--Dart运算符 先给出一个Dart运算符表,接下来在逐个解释和使用.如下:                            描述       ...

  8. Flutter学习笔记(6)--Dart异常处理

    如需转载,请注明出处:Flutter学习笔记(6)--Dart异常处理 异常是表示发生了意外的错误,如果没有捕获异常,引发异常的隔离程序将被挂起,并且程序将被终止: Dart代码可以抛出并捕获异常,但 ...

  9. Flutter学习笔记(8)--Dart面向对象

    如需转载,请注明出处:Flutter学习笔记(7)--Dart异常处理 Dart作为高级语言,支持面向对象的很多特性,并且支持基于mixin的继承方式,基于mixin的继承方式是指:一个类可以继承自多 ...

  10. Flutter学习笔记(9)--组件Widget

    如需转载,请注明出处:Flutter学习笔记(9)--组件Widget 在Flutter中,所有的显示都是Widget,Widget是一切的基础,我们可以通过修改数据,再用setState设置数据(调 ...

随机推荐

  1. Oracle的下载安装教程以及所出现的问题

    1.下载地址 64位 https://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft ...

  2. 解决ConfigParser配置option的大小写问题

    通常情况下,我们会这样解析配置文件: confiig = ConfigParser.ConfigParser() config.read('xxx.ini') #这个read表示对某个文件用读打开, ...

  3. Python 模型定义 :通过pymysql和数据模型(models.py)创建mysql表及表结构

    一.model的配置 1.创建数据库 2.安装pymysql 3.修改配置文件 数据库连接配置 DATABASES = { 'default': { 'ENGINE': 'django.db.back ...

  4. Python记录6:函数2,函数参数

    # 一. 函数参数分为两大类 # 形参:在函数定义阶段括号定义的参数(变量名),称之为形式参数         #因为函数定义阶段只是用一个符号表示表示一个参数,并没有具体的值,所以称之为形式参数,形 ...

  5. kali linux wmtools安装

    1,选择挂载盘时选择自动检测 2,点击安裝vmware tools安裝 3.tar -xzf 壓縮包名 4../vmware-install.pl 5,reboot

  6. C# & ASP.NET Core 入门官方资料汇总

    借助给公司实习生培训事宜,整理了一些微软官方的适合新同学入门的资料,这里分享一下: 工具: Visual Studio 2017 Community 版本下载地址:https://www.visual ...

  7. 多线程实现Thread.Start()与ThreadPool.QueueUserWorkItem两种方式对比

    Thread.Start(),ThreadPool.QueueUserWorkItem都是在实现多线程并行编程时常用的方法.两种方式有何异同点,而又该如何取舍? 写一个Demo,分别用两种方式实现.观 ...

  8. Rigid Frameworks (画图二分图规律 + DP + 数学组合容斥)

    题意:方格n*m,然后对于每一个格子有3种画法1左对角线2右对角线3不画,求让图形稳定的画法有多少种? 思路:通过手画二分图可以发现当二分图联通时改图满足条件,然后我们对于一个dp[n][m]可以利用 ...

  9. io 流概念

    io 流概念 对输入输出抽象的封装

  10. HashMap集合存储自定义类

    第一种情况,key为String,value为自定义类person类: 输出结果,key重复的被去掉了,key重复的那个value值之前的被最后一个覆盖了: 第二种情况,key为自定义类person类 ...