这些内容只是Git知识的冰山一角
更多知识请 阅读 Pro git。Pro git 全部内容均根据知识共享署名非商业性共享3.0版许可证受权,各位能够免费下载阅读,有pdf、mobi、qpub格式能够下载。
https://git-scm.com/book/zh/v2git
下载gitgithub
https://git-scm.com/download/winspa
https://github.com/join?source=header-homecode
主要是填写项目名称(用英文)和项目类型(内部项目选择Private私有的) blog
填好后点 Create repository 按钮提交 图片
提交成功以下图rem
单击 右键 打开git bush 相似于Win的cmd get
下边操做以前须要设置用户cmd
首先,你须要执行下面两条命令,做为git的基础配置,做用是告诉git你是谁,你输入的信息将出如今你建立的提交中.it
git config --global user.name "你的名字或昵称" git config --global user.email "你的邮箱"
而后执行:
git init git add . git commit -m "first commit" (first commit 本次提交的内容) git remote add origin https://github.com/852172891/test3.git (地址换成你建的项目的地址,不知道的话看下边 项目地址是哪一个的图) git push -u origin master (这一句执行的时候 可能须要输入你的 git 帐号 和密码)
输入密码后,提交成功,到github上刷新一下,本地的文件已经上传到github上了