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学习笔记(1) -- "user.name has multiple values"

参照萧大的 http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287...

Android注解使用快速入门

注解是那些插入到源码中用于某种工具处理的标签。在java语言中,注解被当作一个修饰符使用的,每个注解的名称前面都加上了@符号。注解自身并不会做任何事情,它需要通过注解事件处理器处理后,才会有用。注解在...

github desktop for mac 上传项目步骤以及注意事项

1.注册一个github账号在官网。https://github.com/github  2.下载mac版的github客户端。网址:https://desktop.github.com 3.之后会在...

Idea利用Git提交代码到github步骤

新建一个远程的仓库(空的) 新建一个远程仓库 设置远程仓库的名字,并创建 设置仓库名 切记:如果我们在创建远程仓库的时候添加了README和.ignore等文件,我们在后面...

Git(Android Studio)项目提交更新到github详细步骤及可能遇到问题

在我们开发项目中有时我们想将项目发布到github上,可能初次用会出现各种问题(配置环境,工具安装),下面介绍一些总结和看大神的一些经验,给大家分享下。两个相关概念:git和githubGit是一个开...

Git(Android Studio)项目提交更新到github详细步骤及可能遇到问题

Git(Studio)上传项目到Github详细步骤,下载工具,及安装中可能遇到的问题

git上传github和码云的步骤

创建版本库(repository) 1 打开gitbranch   2.创建一个空文件件 ckdir  xxxx   3,找到文件夹 cd xxx   4.查看当前文件的位置  p...

Github:通过Git创建、同步、合并Fork的步骤

Github:通过Git创建、同步、合并Fork的步骤

git和github菜鸟使用步骤

git版本控制器安装

iOS 创建Git 提交到GitHub 简明讲解配步骤图

iOS 创建Git源 提交到GitHub
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:git for github步骤
举报原因:
原因补充:

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