text 你好粘-https2git.session
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 你好粘-https2git.session相关的知识,希望对你有一定的参考价值。
aaron@blackarcher ~ $ cd GitHub/hello
hello.c/ hellodalvik/ hello-dbus/ hello_pytest/ helloworld/
aaron@blackarcher ~ $ cd GitHub/hello
hello.c/ hellodalvik/ hello-dbus/ hello_pytest/ helloworld/
aaron@blackarcher ~ $ cd GitHub/hello
hello.c/ hellodalvik/ hello-dbus/ hello_pytest/ helloworld/
aaron@blackarcher ~ $ cd GitHub/hello
hello.c/ hellodalvik/ hello-dbus/ hello_pytest/ helloworld/
aaron@blackarcher ~ $ cd GitHub/hello^C
aaron@blackarcher ~ $ ls hello-cl^C
aaron@blackarcher ~ $ ls cli^C
aaron@blackarcher ~ $ locate Class.C
/home/aaron/bindings/r/tests/Class.C
/home/aaron/bindings/r/tests/ExpClass.C
aaron@blackarcher ~ $ locate hello-cling
aaron@blackarcher ~ $ cd GitHub/
aaron@blackarcher ~/GitHub $ git clone https://github.com/navigaid/hello-cling
Cloning into 'hello-cling'...
remote: Counting objects: 50, done.
remote: Total 50 (delta 0), reused 0 (delta 0), pack-reused 50
Unpacking objects: 100% (50/50), done.
aaron@blackarcher ~/GitHub $ cd hello-cling/
aaron@blackarcher ~/GitHub/hello-cling $
aaron@blackarcher ~/GitHub/hello-cling $ ls
ClassAccessMod.C ClassCopyConstructor.C ClassThis.C get4char.C sizes.C
Class.C ClassMemberFunc.C Enum.C hello.C Streams.C
ClassConsDecons.C ClassParameterizedConstructor.C env.C InlineFunc.C tcpserver.C
ClassConstructorDefault.C ClassPointer.C FilePrint.C prt.C Typedef.C
ClassConstructorInit.C ClassStaticMember.C FriendFunc.C README.md world.C
aaron@blackarcher ~/GitHub/hello-cling $ ls
ClassAccessMod.C ClassCopyConstructor.C ClassThis.C get4char.C sizes.C
Class.C ClassMemberFunc.C Enum.C hello.C Streams.C
ClassConsDecons.C ClassParameterizedConstructor.C env.C InlineFunc.C tcpserver.C
ClassConstructorDefault.C ClassPointer.C FilePrint.C prt.C Typedef.C
ClassConstructorInit.C ClassStaticMember.C FriendFunc.C README.md world.C
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/navigaid/hello-cling
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
aaron@blackarcher ~/GitHub/hello-cling $ git remote remove origin
aaron@blackarcher ~/GitHub/hello-cling $ git remote add origin git@github.com:navigaid/hello-cling.git
aaron@blackarcher ~/GitHub/hello-cling $ git pull
From github.com:navigaid/hello-cling
* [new branch] master -> origin/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
aaron@blackarcher ~/GitHub/hello-cling $ git branch --set-upstream-to=origin/master master
Branch 'master' set up to track remote branch 'master' from 'origin'.
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:navigaid/hello-cling.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
aaron@blackarcher ~/GitHub/hello-cling $ git remote remove origin
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
aaron@blackarcher ~/GitHub/hello-cling $ git remote add origin git@github.com:navigaid/hello-cling.git
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:navigaid/hello-cling.git
fetch = +refs/heads/*:refs/remotes/origin/*
aaron@blackarcher ~/GitHub/hello-cling $ git branch --set-upstream-to=origin/master master
error: the requested upstream branch 'origin/master' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:navigaid/hello-cling.git
fetch = +refs/heads/*:refs/remotes/origin/*
aaron@blackarcher ~/GitHub/hello-cling $ git fetch
From github.com:navigaid/hello-cling
* [new branch] master -> origin/master
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:navigaid/hello-cling.git
fetch = +refs/heads/*:refs/remotes/origin/*
aaron@blackarcher ~/GitHub/hello-cling $ git branch --set-upstream-to=origin/master master
Branch 'master' set up to track remote branch 'master' from 'origin'.
aaron@blackarcher ~/GitHub/hello-cling $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:navigaid/hello-cling.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
aaron@blackarcher ~/GitHub/hello-cling $ mkdir stl
aaron@blackarcher ~/GitHub/hello-cling $ cd stl
aaron@blackarcher ~/GitHub/hello-cling/stl $ ls
aaron@blackarcher ~/GitHub/hello-cling/stl $ cat https://www.tutorialspoint.com//cplusplus/cpp_stl_tutor
ial.htm^C
aaron@blackarcher ~/GitHub/hello-cling/stl $ vim README.md
aaron@blackarcher ~/GitHub/hello-cling/stl $ git add .
aaron@blackarcher ~/GitHub/hello-cling/stl $ git commit -m "start STL"
[master d6bee70] start STL
1 file changed, 1 insertion(+)
create mode 100644 stl/README.md
aaron@blackarcher ~/GitHub/hello-cling/stl $ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 364 bytes | 364.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:navigaid/hello-cling.git
504e7e6..d6bee70 master -> master
aaron@blackarcher ~/GitHub/hello-cling/stl $
以上是关于text 你好粘-https2git.session的主要内容,如果未能解决你的问题,请参考以下文章