Windows10使用GitHub入门

1.注册GitHub官网账号

GitHub官网地址

2.下载和安装Git

git下载网址

运行安装文件,根据个人选择配置路径,其他选项选取默认项

3.获取个人密匙

打开Git Bash,输入以下指令获取SSH KEY

$ ssh-keygen -t rsa -C "your_email@youremail.com"
#your_email@youremail.com改为你在github上注册的邮箱,路径与密码选择回车默认即可

在这里插入图片描述
本例在/c/Users/libq8生成.ssh文件夹,进入.ssh文件夹打开id_rsa.pub文件,复制里面的key。

4.登录GitHub添加密匙

登录个人GitHub账号,选择settings ->SSH and GPG keys,点击new SSH key,命名title并粘贴生成的SSH key。
在这里插入图片描述

5.绑定连接GitHub

$ ssh -T git@github.com

在这里插入图片描述

6.设置username和email

$ git config --global user.name "your name"
$ git config --global user.email "your_email@youremail.com"

7.克隆仓库到本地

7.1新建仓库:

登录GitHub账号,选择your repositories->new

在这里插入图片描述

7.2查看仓库网址:

在这里插入图片描述

7.3输入克隆指令

git clone git@github.com:libq8/mygit.git

在这里插入图片描述

8.在本地文件夹添加文件并上传

8.1进入本地文件夹,创建test.txt文件,在Git Bash中使用ls指令查看
8.2提出更改(添加到暂存区)
git add <filename>
git add *
8.3提交到HEAD
git commit -m "代码提交信息"
8.4提交到远端仓库
git push origin master

分支是用来将特性开发绝缘开来的。在创建仓库时,master 是"默认的"分支。
在这里插入图片描述

8.5查看远程仓库

在这里插入图片描述

9.参考

GitHub 新手详细教程
Github 简明教程

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Forger 推荐的学习windows 编程的所有书籍都在这儿: windows 编程 windows MFC入门到精通 windows 高级编程 windows 网络编程 Programming Windows Programming Windows with MFC Programming Applications for Windows Network Programming for Microsoft Windows Programming Windows by Charles Petzold. The book to get on Win32 API. If you want to write programs using just the API (which is what this tutorial covers), you need this book. 如果你想只用windows API编程,这本书是入门经典,你需要这本书。 Programming Windows with MFC by Jeff Prosise. If you want to venture into MFC (AFTER becoming fully accustomed to using the Win32 API), this is the book for you. If you don't like MFC but intend on getting a job doing windows developement, get this anyway, it's better to know than not. 如果你想用MFC这本书是你想要的 Programming Applications for Windows by Jeffrey Richter. Not for newbies, if you want to be up on managing processes and threads, dlls, windows memory management, exception handling, and hooking into the system, then this is the book for you. 如果你想了解操作系统内幕,这本书是经典,书中包含了进程,线程,动态库,windows内存管理,异常处理。。。 Visual C++ Windows Shell Programming by Dino Esposito. For anyone interested in the visual and user-friendly aspects of windows, this book covers writing extentions to the windows shell, working efficiently with files and drag and drop, customizing the taskbar and windows explorer, and numerous other tricks. Well worthwhile for anyone writing GUI apps in windows. Network Programming for Microsoft Windows Up to date information on network programming, including NetBIOS, mailslots and pipes, and of course the ever important windows sockets, complete with winsock2 and raw sockets. Also contains specific information on the various windows platforms including 2000 and CE.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值