Last login: Sat Nov 4 09:20:15 on ttys000

bogon:~ neveszhang$ git clone git@github.com:031502243/Classmate-book.git

Cloning into 'Classmate-book'...

Enter passphrase for key '/Users/neveszhang/.ssh/id_rsa':

remote: Counting objects: 133, done.

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

remote: Total 133 (delta 14), reused 128 (delta 12), pack-reused 0

Receiving objects: 100% (133/133), 817.46 KiB | 230.00 KiB/s, done.

Resolving deltas: 100% (14/14), done.

bogon:~ neveszhang$ cd classmate-book

bogon:classmate-book neveszhang$ ls

Classmate README.md

bogon:classmate-book neveszhang$ git remote -v

origin git@github.com:031502243/Classmate-book.git (fetch)

origin git@github.com:031502243/Classmate-book.git (push)

bogon:classmate-book neveszhang$ git remote add upstrean git@github.com:2017FZU/Classmate-book.git //额..拼写错误造成了非常多的尴尬

bogon:classmate-book neveszhang$ git remote -v

origin git@github.com:031502243/Classmate-book.git (fetch)

origin git@github.com:031502243/Classmate-book.git (push)

upstrean git@github.com:2017FZU/Classmate-book.git (fetch)

upstrean git@github.com:2017FZU/Classmate-book.git (push)

bogon:classmate-book neveszhang$ git fetch upstream

fatal: 'upstream' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

bogon:classmate-book neveszhang$ ls

Classmate README.md

bogon:classmate-book neveszhang$

bogon:classmate-book neveszhang$ git branch

  • master

    bogon:classmate-book neveszhang$ git branch -a
  • master

    remotes/origin/Booomshaker

    remotes/origin/HEAD -> origin/master

    remotes/origin/How-Come

    remotes/origin/K

    remotes/origin/NevesLalala

    remotes/origin/hbing

    remotes/origin/hsh1234

    remotes/origin/master

    remotes/origin/winforbest

    remotes/origin/zora02

bogon:classmate-book neveszhang$ git checkout -b Neveslalala origin/master

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

Switched to a new branch 'Neveslalala'

bogon:classmate-book neveszhang$ ls

Classmate README.md

bogon:classmate-book neveszhang$ git checkout -b Neves origin/NevesLalala

Branch Neves set up to track remote branch NevesLalala from origin.

Switched to a new branch 'Neves'

bogon:classmate-book neveszhang$ git remote add upstrean git@github.com:2017FZU/Classmate-book.git //upstrean

fatal: remote upstrean already exists.

bogon:classmate-book neveszhang$ git remote add upstream git@github.com:2017FZU/Classmate-book.git //upstream

bogon:classmate-book neveszhang$ git remote -v

origin git@github.com:031502243/Classmate-book.git (fetch)

origin git@github.com:031502243/Classmate-book.git (push)

upstream git@github.com:2017FZU/Classmate-book.git (fetch)

upstream git@github.com:2017FZU/Classmate-book.git (push)

upstrean git@github.com:2017FZU/Classmate-book.git (fetch)

upstrean git@github.com:2017FZU/Classmate-book.git (push)

bogon:classmate-book neveszhang$ git fetch upstream

Enter passphrase for key '/Users/neveszhang/.ssh/id_rsa':

remote: Counting objects: 93, done.

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

remote: Total 93 (delta 32), reused 78 (delta 25), pack-reused 0

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

From github.com:2017FZU/Classmate-book

  • [new branch] Booomshaker -> upstream/Booomshaker
  • [new branch] How-Come -> upstream/How-Come
  • [new branch] K -> upstream/K
  • [new branch] NevesLalala -> upstream/NevesLalala
  • [new branch] hbing -> upstream/hbing
  • [new branch] hsh1234 -> upstream/hsh1234
  • [new branch] master -> upstream/master
  • [new branch] winforbest -> upstream/winforbest
  • [new branch] zora02 -> upstream/zora02

//把要上传的文件放到classmate-book文件夹下

bogon:classmate-book neveszhang$ git add .

bogon:classmate-book neveszhang$ git commit -m "ui&sql method"

[Neves 81f71e2] ui&sql method

7 files changed, 24 insertions(+)

create mode 100644 .DS_Store

create mode 100644 ISqlmethods.java

create mode 100644 ui/7AE27C5C3668BA8686713856E3720E51.jpg

create mode 100644 ui/917EAC099B5888E584D34818837E2665.jpg

create mode 100644 ui/9E56D480EDCEDBC1B2DF4302503A6F2A.jpg

create mode 100644 ui/B7ABABC02B7A82A97CBAC204D2978CB1.jpg

create mode 100644 ui/E338393866D3D10874A72F63128299DD.jpg

bogon:classmate-book neveszhang$ git push

fatal: The upstream branch of your current branch does not match

the name of your current branch. To push to the upstream branch

on the remote, use

git push origin HEAD:NevesLalala

To push to the branch of the same name on the remote, use

git push origin Neves  //选择这条语句..不小心新建了一个分支

To choose either option permanently, see push.default in 'git help config'.

bogon:classmate-book neveszhang$ git brancj

git: 'brancj' is not a git command. See 'git --help'.

The most similar command is

branch

bogon:classmate-book neveszhang$

bogon:classmate-book neveszhang$ git checkout -b NevesLalala origin/NevesLalala

fatal: A branch named 'NevesLalala' already exists.

bogon:classmate-book neveszhang$ git checkout NevesLalala

error: Your local changes to the following files would be overwritten by checkout:

.DS_Store

Please commit your changes or stash them before you switch branches.

Aborting

bogon:classmate-book neveszhang$ git push origin Neves

Enter passphrase for key '/Users/neveszhang/.ssh/id_rsa':

Counting objects: 10, done.

Delta compression using up to 8 threads.

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

Writing objects: 100% (10/10), 75.24 KiB | 18.81 MiB/s, done.

Total 10 (delta 1), reused 0 (delta 0)

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

To github.com:031502243/Classmate-book.git

  • [new branch] Neves -> Neves

    //登录自己的girhub上就能查看这个clone下来的库了,然后pull request

github团队使用记录的更多相关文章

  1. 超详细!Github团队协作教程(Gitkraken版)

    超详细!Github团队协作教程(Gitkraken版) 一.前期工作 1. 在 Github 上创建 organization step1. 登录Github网站,点击右上角头像,选择 " ...

  2. Github团队开发示例(二)

    Github团队开发示例(二) 作者:Grey 原文地址:http://www.cnblogs.com/greyzeng/p/6063765.html 接之前讲的Github团队开发示例(一),本文主 ...

  3. Github团队开发示例(一)

    Github团队开发示例(二) 作者:Grey 原文地址:http://www.cnblogs.com/greyzeng/p/6044837.html 我们可以在Github上管理自己的团队项目.团队 ...

  4. 从零开始,创建GitHub团队开发环境

    从零开始,创建GitHub团队开发环境 GitHub提供免费的团队环境,不过免费仓库容量是300MB,请大家注意. 申请GitHub个人账号 1. 使用浏览器访问GitHub主页.如果使用IE,尽量不 ...

  5. Github: 团队账号:https://github.com/ChenRuTing

    Github: 团队账号:https://github.com/ChenRuTing 以后我们做好的代码会随时更新上传到这里,请老师届时帮我们看看.谢谢老师.

  6. GitHub团队协作流程

    说来惭愧,这么长时间,第一次参与修改开源项目,所以整理了一份GitHub团队协作流程,作为备忘,文章大部分内容参考https://www.cnblogs.com/schaepher/p/4933873 ...

  7. 转:GitHub团队项目合作流程

    转自:https://www.cnblogs.com/schaepher/p/4933873.html GitHub团队项目合作流程   已在另一篇博客中写出关于以下问题的解决,点此进入: 同步团队项 ...

  8. [gitHub实践] 实践记录

    [gitHub实践] 实践记录 版权2019.4.19更新 Q1:本地仓库和远程仓库连接提示输入用户名密码 本地仓库和远程仓库连接有两种方式 本地初始化建立一个仓库,远程也建立了一个仓库 本地建立仓库 ...

  9. Android Studio && GitHub 团队多人一起开发

    曾几何时,花了两天的时间搞了合并项目,搞得乱七八糟der,但最终还是被我搞定了,too 乱 to 做笔记.过了几个月,也就是前几天,抱着从头开始的决心,再次尝试,然鹅并没有结果.今天,再一次重新开始, ...

随机推荐

  1. IIS 共享目录读写报错 Access to the path:“\\192.168.0.1\1.txt”is denied解决方案

    这个是IIS权限的问题,主要修改了以下地方,如果两台电脑有相同的用户名和密码可以跳过第一步 1.找到共享目录的文件夹,属性=>共享,给电脑创建一个新用户,共享文件下添加新用户的读写权限,然后对应 ...

  2. MVVM框架在unity开发中的使用

    1.什么是MVVM 借用一下百度百科上对MVVM的介绍,MVVM是Model-View-ViewModel的简写,它本质上就是MVC 的改进版.MVVM 就是将其中的View 的状态和行为抽象化,让我 ...

  3. 创建一个jdbc连接

    本文介绍如何建立一个jdbc连接进行数据库查询操作. 创建一个java工程,导入jar包. 作者使用mysql数据库,建立jdbc连接需要mysql数据库驱动jar包和jdbc连接jar包. 建立jd ...

  4. Dagger2 单例

    解锁Dagger2使用姿势(二) 之带你理解@Scope Dagger2从0基础使用,到单例注入的正确姿势 Android之dagger2的简单运用和详细解读(入门)

  5. Java面试中遇到的坑【填坑篇】

    看到大家对上篇<Java面试中遇到的坑>一文表现出强力的关注度,说明大家确实在面试中遇到了类似的难题.大家在文章留言处积极留言探讨面试中遇到的问题,其中几位同学还提出了自己的见解,我感到非 ...

  6. Vue之组件使用(二)

    补充一下:之前没提到,这里是一个父子组件通信的方法 如果想要使同一个组件实现不同的效果,那么可以这样做. 把需要封装的组件模板写在template中 <template id="cou ...

  7. mongodb命令(持续更新)

    $lt $lte $gt $gte< . <= . > . >= 1.分组求和db.collection.aggregate([{$group : {_id : null, s ...

  8. Linux常用基本命令( tree, pwd, cd )

    pwd与cd命令 >pwd命令是“print working directory”中每个单词的首字母缩写,其功能是显示当前工作目录的绝对路径.在实际工作中,我们在命令行操作命令时,经常会在各个目 ...

  9. Kendo Grid控件中将枚举值转为枚举名显示

    我们在开发过程中经常会遇到需要将枚举值转换成名称进行显示的情况.如下我们有这样一个数据源对象: var users = [ {id: 1, name: "similar1", st ...

  10. 有关正则表达式的Js方法(replace)

    整理一下最近常用的几个有关正则的js方法 replace 语法:stringObject.replace(regexp/substr,replacement) 用法1 const str='abc13 ...