git for github步骤

原创 2016年07月20日 18:07:09
uname@uname-PC MINGW64 ~
//初始化
$ git init
Initialized empty Git repository in C:/Users/uname/.git/
//名字
uname@uname-PC MINGW64 ~ (master)
$ git config --global user.name '***'
//email
uname@uname-PC MINGW64 ~ (master)
$ git config --global user.email ******@qq.com

uname@uname-PC MINGW64 ~ (master)
$ cd d
bash: cd: d: No such file or directory

uname@uname-PC MINGW64 ~ (master)
$ cd d:
//创建文件
uname@uname-PC MINGW64 /d
$ mkdir test

uname@uname-PC MINGW64 /d
$ cd test:
bash: cd: test:: No such file or directory

uname@uname-PC MINGW64 /d
$ cd test
//显示文件
uname@uname-PC MINGW64 /d/test
$ git status
fatal: Not a git repository (or any of the parent directories): .git

uname@uname-PC MINGW64 /d/test
$ git status
fatal: Not a git repository (or any of the parent directories): .git
//添加文件到缓存(还不知道原理)
uname@uname-PC MINGW64 /d/test
$ git add
fatal: Not a git repository (or any of the parent directories): .git

uname@uname-PC MINGW64 /d/test
$ git clone https://github.com/ifmiss/test.git
Cloning into 'test'...
Fatal: AggregateException encountered.
Username for 'https://github.com': pro
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/ifmiss/test.git/'

uname@uname-PC MINGW64 /d/test
$ git clone https://github.com/ifmiss/test.git
Cloning into 'test'...
Fatal: AggregateException encountered.
Username for 'https://github.com': *********@qq.com
remote: Repository not found.
fatal: repository 'https://github.com/ifmiss/test.git/' not found
//从github上对应的项目clone 
uname@uname-PC MINGW64 /d/test
$ git clone https://github.com/*********/SpringMvc_easyui
Cloning into 'SpringMvc_easyui'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

uname@uname-PC MINGW64 /d/test
$ git status
fatal: Not a git repository (or any of the parent directories): .git

uname@uname-PC MINGW64 /d/test
$ cd SpringMvc_easyui

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        SpringMvc_easyui.txt

nothing added to commit but untracked files present (use "git add" to track)

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git add .

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   SpringMvc_easyui.txt


uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git commit -am '测试test'
[master (root-commit) bd9e9db] 测试test
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 SpringMvc_easyui.txt

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git status
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
  (use "git branch --unset-upstream" to fixup)
nothing to commit, working tree clean
//反正有用不知道干啥
uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git remote -v
origin  https://github.com/*********/SpringMvc_easyui (fetch)
origin  https://github.com/*********/SpringMvc_easyui (push)
//推送上去
uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git push origin master
Fatal: AggregateException encountered.
Username for 'https://github.com': *********@qq.com
Counting objects: 3, done.
Writing objects: 100% (3/3), 222 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/*********/SpringMvc_easyui
 * [new branch]      master -> master

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        springui/

nothing added to commit but untracked files present (use "git add" to track)

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git add .

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)




uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git commit -am 'SpringMvc EasyUI'
[master ad63253] SpringMvc EasyUI
 439 files changed, 73403 insertions(+)

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
nothing to commit, working tree clean

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git remote -v
origin  https://github.com/*********/SpringMvc_easyui (fetch)
origin  https://github.com/*********/SpringMvc_easyui (push)

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git push origin master
Fatal: HttpRequestException encountered.
Username for 'https://github.com': *********@qq.com
Counting objects: 372, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (364/364), done.
Writing objects:   4% (15/372)

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git push origin master
Fatal: HttpRequestException encountered.
Username for 'https://github.com': *********@qq.com
Counting objects: 372, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (364/364), done.
Writing objects:   4% (15/372)
git config --global http.postBuffer 524288000
//解决上传静止不动问题
uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git config --global http.postBuffer 524288000

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git push origin master
Fatal: HttpRequestException encountered.
Username for 'https://github.com': *********@qq.com
Counting objects: 372, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (364/364), done.
Writing objects: 100% (372/372), 6.10 MiB | 0 bytes/s, done.
Total 372 (delta 165), reused 0 (delta 0)
To https://github.com/*********/SpringMvc_easyui
 * [new branch]      master -> master

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ To https://github.com/*********/SpringMvc_easyui
bash: To: command not found

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$  * [new branch]      master -> master
bash: SpringMvc_easyui.txt: command not found

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$

uname@uname-PC MINGW64 /d/test/SpringMvc_easyui (master)
$ git push origin master
Fatal: HttpRequestException encountered.
Username for 'https://github.com': *********@qq.com
Counting objects: 372, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (364/364), done.
Writing objects: 100% (372/372), 6.11 MiB | 0 bytes/s, done.
Total 372 (delta 164), reused 0 (delta 0)
To https://github.com/*********/SpringMvc_easyui
   bd9e9db..ad63253  master -> master


版权声明:本文为博主原创文章,未经博主允许不得转载。

Git安装与配置(Windows)+ 本地文件提交远程git服务器

几个代码托管网站: 码云:https://gitee.com(http://git.oschina.net) GitHub: https://github.com Bitbucket:https://...
  • smartdt
  • smartdt
  • 2017年08月01日 16:01
  • 472

git下修改已经提交N次代码的user.name和user.email

有个工程提交在github上,之后要迁移到公司的gitali: gitlab.alibaba-inc.com上。因为安全的原因,在github上配置的 user.name 和 user.email 不...
  • liu251
  • liu251
  • 2014年03月28日 20:13
  • 8168

pyhon3模拟登录百度(2)—— 使用IE11理清百度登录内部逻辑和分析请求发送数据

依照思路来,第一步就是难点和重点,搞清楚了网页登录的内部逻辑,才能进行下一步的模拟登录。 这里,我的浏览器是IE11。因为已经看了一篇手把手教学分析登录逻辑的文章,所以这里写的要节省多了。 ...
  • abclixu123
  • abclixu123
  • 2014年10月12日 08:19
  • 3155

用VS2017上传项目到码云gitee.com和基本命令

用VS2017上传项目到gitee
  • xiangcns
  • xiangcns
  • 2017年10月22日 22:54
  • 1907

git安装配置和连接码云公钥

Git简介 Git是一个免费开源的分布式版本控制系统 可以有效的高速的处理从很小到非常大的项目版本管理GIT安装git(linux安装) 下载地址 源码包 https://github.com/...
  • u010920327
  • u010920327
  • 2017年12月07日 15:28
  • 390

fatal: could not read Username for 'https://github.com': No such file or directo

git push origin master报错 fatal: could not read Username for 'https://github.com': No such file or d...
  • ISaiSai
  • ISaiSai
  • 2015年08月17日 21:03
  • 9838

GitHub错误处理:fatal:could not read Username for 'https://github.com': No such file or directory

当执行git push origin master:报如下错误,为版本bug, style="font-size: 140%"       onclick="generateDownlo...
  • HaiPaner
  • HaiPaner
  • 2014年01月25日 21:52
  • 4943

github 报错 权限问题fatal: Authentication failed

错误信息 Username for ‘https://github.com‘: ××××× Password for ‘https://××××@github.com’: remote: I...
  • Merlin_feng
  • Merlin_feng
  • 2015年06月08日 18:17
  • 4658

git SourceTree(remote:invalid username or password,fatal:Authentication falied for 'https:...

在执行 push 时候,密码输入错误,重新拉去推送仍然是这个错误。 在sourcetree界面推送会仍然得到这个错误 需要在命令行操作,直接git push  就可以解决密码输入错误的问题 如果是...
  • Ink_cherry
  • Ink_cherry
  • 2017年10月08日 21:06
  • 1214

Idea GitLab设置远程Remote仓库时显示authentication failed for xxx错误

现象:        由于之前在使用Idea提交过Git版本管理的项目到GitLab中。最开始使用时记住了username和password也就是Git的凭据。        所以这次在设置的时候...
  • mzqqqqq
  • mzqqqqq
  • 2017年07月04日 20:29
  • 1117
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:git for github步骤
举报原因:
原因补充:

(最多只允许输入30个字)