文本浏览器

Git配置(github)

发布者 : 管理员-Adler | 发布时间 : 2018-12-26 00:26:05
文章号 : 3 | 阅读量 : 31+1 | AAW值(?) : 0.45 (仅供参考)

建立本地git

Adler@DESKTOP-PJG9OS4 MINGW64 /d/__DISKTOOLS__/__CODING__/java/FolderSizeCalculator/src

$ git init

Initialized empty Git repository in D:/__DISKTOOLS__/__CODING__/Java/FolderSizeCalculator/src/.git/

Adler@DESKTOP-PJG9OS4 MINGW64 /d/__DISKTOOLS__/__CODING__/java/FolderSizeCalculator/src (master)

$ git add *

Adler@DESKTOP-PJG9OS4 MINGW64 /d/__DISKTOOLS__/__CODING__/java/FolderSizeCalculator/src (master)

$ git status

On branch master

No commits yet

Changes to be committed:

(use "git rm --cached <file>..." to unstage)

       new file:  META-INF/MANIFEST.MF

       new file:   MainWindow$1.class

       new file:  MainWindow$2.class

       new file:  MainWindow.class

       new file:  MainWindow.java

       new file:  NaivelyConcurrentTotalFileSize$1.class

       new file:  NaivelyConcurrentTotalFileSize.class

       new file:  NaivelyConcurrentTotalFileSize.java

       new file:  config.ini

       new file:  main.class

       new file:  main.java

Adler@DESKTOP-PJG9OS4 MINGW64 /d/__DISKTOOLS__/__CODING__/java/FolderSizeCalculator/src (master)

$ git commit -m 'first'

[master (root-commit) 1b99fa3] first

11 files changed, 546 insertions(+)

create mode 100644 META-INF/MANIFEST.MF

create mode 100644 MainWindow$1.class

create mode 100644 MainWindow$2.class

create mode 100644 MainWindow.class

create mode 100644 MainWindow.java

create mode 100644 NaivelyConcurrentTotalFileSize$1.class

create mode 100644 NaivelyConcurrentTotalFileSize.class

create mode 100644 NaivelyConcurrentTotalFileSize.java

create mode 100644 config.ini

create mode 100644 main.class

create mode 100644 main.java

gibhub上传

Adler@DESKTOP-PJG9OS4 MINGW64 /d/__DISKTOOLS__/__CODING__/java/FolderSizeCalculator/src (master)

$ git remote add origin https://github.com/AdlerED/FolderSizeCalculator.git

Adler@DESKTOP-PJG9OS4 MINGW64 /d/__DISKTOOLS__/__CODING__/java/FolderSizeCalculator/src (master)

$ git push -f origin master

Enumerating objects: 14, done.

Counting objects: 100% (14/14), done.

Delta compression using up to 4 threads

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

Writing objects: 100% (14/14), 17.95 KiB | 3.59 MiB/s, done.

Total 14 (delta 0), reused 0 (delta 0)

To https://github.com/AdlerED/FolderSizeCalculator.git

+ f8170d5...1b99fa3 master -> master (forced update)






评论加载中...

+ 参与讨论