Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git init --allow-unrelated-histories
error: unknown option `allow-unrelated-histories'
usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>]
--template <template-directory>
directory from which templates will be used
--bare create a bare repository
--shared[=<permissions>]
specify that the git repository is to be shared amongst several users
-q, --quiet be quiet
--separate-git-dir <gitdir>
separate git dir from working tree
-b, --initial-branch <name>
override the name of the initial branch
--object-format <hash>
specify the hash algorithm to use
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git init
Reinitialized existing Git repository in D:/0学习/web数据管理/VisualizationProject/vue0411/dist/.git/
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git add .
warning: in the working copy of 'mintty.exe.stackdump', LF will be replaced by CRLF the next time Git touches it
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git add . --allow-unrelated-histories
error: unknown option `allow-unrelated-histories'
usage: git add [<options>] [--] <pathspec>...
-n, --dry-run dry run
-v, --verbose be verbose
-i, --interactive interactive picking
-p, --patch select hunks interactively
-e, --edit edit current diff and apply
-f, --force allow adding otherwise ignored files
-u, --update update tracked files
--renormalize renormalize EOL of tracked files (implies -u)
-N, --intent-to-add record only the fact that the path will be added later
-A, --all add changes from all tracked and untracked files
--ignore-removal ignore paths removed in the working tree (same as --no-all)
--refresh don't add, only refresh the index
--ignore-errors just skip files which cannot be added because of errors
--ignore-missing check if - even missing - files are ignored in dry run
--sparse allow updating entries outside of the sparse-checkout cone
--chmod (+|-)x override the executable bit of the listed files
--pathspec-from-file <file>
read pathspec from file
--pathspec-file-nul with --pathspec-from-file, pathspec elements are separated with NUL character
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git commit -m "third commit"
[master 958a08c] third commit
8 files changed, 116 insertions(+), 148 deletions(-)
create mode 100644 assets/index.02004874.js
delete mode 100644 assets/index.11c61c4d.js
delete mode 100644 assets/index.266a5b0e.js
rename assets/{index.36ddc2d7.css => index.4390d605.css} (96%)
delete mode 100644 assets/index.671c5d35.css
create mode 100644 mintty.exe.stackdump
create mode 100644 "\346\234\252\345\221\275\345\220\215\347\232\204\350\256\276\350\256\241.png"
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git remote add origin https://github.com/YanngXT/YanngXT.github.io.git
error: remote origin already exists.
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git pull origin master --allow-unrelated-histories
From https://github.com/YanngXT/YanngXT.github.io
* branch master -> FETCH_HEAD
Already up to date.
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git push -u origin master --allow-unrelated-histories
error: unknown option `allow-unrelated-histories'
usage: git push [<options>] [<repository> [<refspec>...]]
-v, --verbose be more verbose
-q, --quiet be more quiet
--repo <repository> repository
--all push all refs
--mirror mirror all refs
-d, --delete delete refs
--tags push tags (can't be used with --all or --mirror)
-n, --dry-run dry run
--porcelain machine-readable output
-f, --force force updates
--force-with-lease[=<refname>:<expect>]
require old value of ref to be at this value
--force-if-includes require remote updates to be integrated locally
--recurse-submodules (check|on-demand|no)
control recursive pushing of submodules
--thin use thin pack
--receive-pack <receive-pack>
receive pack program
--exec <receive-pack>
receive pack program
-u, --set-upstream set upstream for git pull/status
--progress force progress reporting
--prune prune locally removed refs
--no-verify bypass pre-push hook
--follow-tags push missing but relevant tags
--signed[=(yes|no|if-asked)]
GPG sign the push
--atomic request atomic transaction on remote side
-o, --push-option <server-specific>
option to transmit
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$ git push -u origin master
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 405.15 KiB | 7.79 MiB/s, done.
Total 8 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/YanngXT/YanngXT.github.io.git
81be700..958a08c master -> master
branch 'master' set up to track 'origin/master'.
Administrator@938W2U7ES8N0SH3 MINGW64 /d/0学习/web数据管理/VisualizationProject/vue0411/dist (master)
$
关于github重新上传时合并分支的问题
最新推荐文章于 2024-03-15 19:37:19 发布