git提交

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi (master)
$ git clone https://github.com/lanboylanboy/Camp.git
Cloning into 'Camp'...
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        deleted:    Main.java

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

        Camp/

no changes added to commit (use "git add" and/or "git commit -a")

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi (master)
$ cd Camp/

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi/Camp (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi/Camp (master)
$ git add readme.txt
fatal: pathspec 'readme.txt' did not match any files

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi/Camp (master)
$ git add readme.txt

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi/Camp (master)
$ git commit -m "readme.txt"
[master 5f49635] readme.txt
 1 file changed, 1 insertion(+)
 create mode 100644 readme.txt

soyo pu@DESKTOP-C3L396K MINGW64 /e/gitlianxi/Camp (master)
$ git push
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 282 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/lanboylanboy/Camp.git
   21f763c..5f49635  master -> master
相關文章
相關標籤/搜索