git学习(码云配套测试)

无分支情况克隆与提交码云


Miyu@DESKTOP-94UU1HG MINGW64 ~ (master)
$ cd /

Miyu@DESKTOP-94UU1HG MINGW64 /
$ cd /

Miyu@DESKTOP-94UU1HG MINGW64 /
$ cd /

Miyu@DESKTOP-94UU1HG MINGW64 /
$ cd C

Miyu@DESKTOP-94UU1HG MINGW64 /C
$ cd Users/

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users
$ cd Miyu/

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu (master)
$ cd Desktop/

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop (master)
$ git clone https://gitee.com/the_heroes/gitlearn.git
Cloning into 'gitlearn'...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop (master)
$ git status
warning: could not open directory 'Application Data/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Local Settings/': Permission denied
warning: could not open directory 'My Documents/': Permission denied
warning: could not open directory 'NetHood/': Permission denied
warning: could not open directory 'PrintHood/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
warning: could not open directory 'Templates/': Permission denied
warning: could not open directory '「开始」菜单/': Permission denied
On branch master

No commits yet

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

        ../.IntelliJIdea2018.2/
        ../.bash_history
        ../.dbeaver/
        ../.dotnet/
        ../.eclipse/
        ../.erlang.cookie
        ../.gitconfig
        ../.m2/
        ../.nuget/
        ../.ssh/
        ../.viminfo
        ../3D Objects/
        ../AppData/
        ../C#Workspace/
        ../Contacts/
        ./
        ../Documents/
        ../Downloads/
        ../Favorites/
        ../Foxit Reader SDK ActiveX.ini
        ../IntelGraphicsProfiles/
        ../Links/
        ../MicrosoftEdgeBackups/
        ../Music/
        ../NTUSER.DAT
        ../NTUSER.DAT{0438cd68-eafc-11e9-aca9-df526140800c}.TM.blf
        ../NTUSER.DAT{0438cd68-eafc-11e9-aca9-df526140800c}.TMContainer00000000000000000001.regtrans-ms
        ../NTUSER.DAT{0438cd68-eafc-11e9-aca9-df526140800c}.TMContainer00000000000000000002.regtrans-ms
        ../OC01345344-101-X30.nc
        ../OneDrive/
        ../Oracle/
        ../Pictures/
        ../Saved Games/
        ../Searches/
        ../Videos/
        ../cache/
        ../ntuser.dat.LOG1
        ../ntuser.dat.LOG2
        ../ntuser.ini
        ../pslog.txt
        ../source/

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

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop (master)
$ cd gitlearn/

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

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

        test.txt

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

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git add test.txt

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD ..." to unstage)

        new file:   test.txt


Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git commit -
error: pathspec '-' did not match any file(s) known to git

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git commit -m "第一次版本提交"
[master 9e3e33c] 第一次版本提交
 1 file changed, 1 insertion(+)
 create mode 100644 test.txt

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (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

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git remote add origin https://gitee.com/the_heroes/gitlearn.git
fatal: remote origin already exists.

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 294 bytes | 294.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-3.8]
To https://gitee.com/the_heroes/gitlearn.git
   6c43a0c..9e3e33c  master -> master

Miyu@DESKTOP-94UU1HG MINGW64 /C/Users/Miyu/Desktop/gitlearn (master)
$

提交结果展示

git学习(码云配套测试)_第1张图片

进阶部分开始

你可能感兴趣的:(git学习(码云配套测试))