-f, --fetch fetch the remote branches --tags import all tags and associated objects when fetching or do not fetch any tag at all (--no-tags) -t, --track <branch> branch(es) to track -m, --master <branch> master branch --mirror[=(push|fetch)] set up remote as a mirror to push to or fetch from
C:\Users\lnd\AppData\Roaming\Code\User>git remote add main https://github.com/ednow/vscode-setting.git
C:\Users\lnd\AppData\Roaming\Code\User>git pull 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=main/<branch> main
C:\Users\lnd\AppData\Roaming\Code\User> git branch --set-upstream-to=main main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git branch
C:\Users\lnd\AppData\Roaming\Code\User>git branch main fatal: Not a valid object name: 'main'.
C:\Users\lnd\AppData\Roaming\Code\User>git checkout -b main Switched to a new branch 'main'
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git branch
C:\Users\lnd\AppData\Roaming\Code\User>git status On branch main
No commits yet
Untracked files: (use "git add <file>..." to include in what will be committed) globalStorage/ settings.json workspaceStorage/
nothing added to commit but untracked files present (use "git add" to track)
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/master fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=master/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git commit -am "test" On branch main
Initial commit
Untracked files: (use "git add <file>..." to include in what will be committed) globalStorage/ settings.json workspaceStorage/
nothing added to commit but untracked files present (use "git add" to track)
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git pu;; git: 'pu;;' is not a git command. See 'git --help'.
The most similar commands are pull push
C:\Users\lnd\AppData\Roaming\Code\User>git pull 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:
(base) D:\Users\LND\Desktop\ereaseo\algorithms>gs On branch main Your branch is up to date with 'origin/main'.
Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: PTA/PTA1072/GasStation.cpp deleted: PTA/PTA1072/GasStation.py
Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: CMakeLists.txt modified: PTA/README.md
Untracked files: (use "git add <file>..." to include in what will be committed) "PTA/PTA1086/\346\265\213\350\257\225\347\202\271.pptx" cmake-build-debug-coverage/ utils/hello.txt
(base) D:\Users\LND\Desktop\ereaseo\algorithms>git restore PTA/PTA1072/GasStation.py error: pathspec 'PTA/PTA1072/GasStation.py' did not match any file(s) known to git
(base) D:\Users\LND\Desktop\ereaseo\algorithms>dir 驱动器 D 中的卷没有标签。 卷的序列号是 B84E-7A0C
(base) D:\Users\LND\Desktop\ereaseo\algorithms>git checkout PTA/PTA1072/GasStation.py error: pathspec 'PTA/PTA1072/GasStation.py' did not match any file(s) known to git
(base) D:\Users\LND\Desktop\ereaseo\algorithms>git checkout PTA\PTA1072\GasStation.py error: pathspec 'PTA\PTA1072\GasStation.py' did not match any file(s) known to git
(base) D:\Users\LND\Desktop\ereaseo\algorithms>git checkout PTA\\PTA1072\\GasStation.py error: pathspec 'PTA\\PTA1072\\GasStation.py' did not match any file(s) known to git
(base) D:\Users\LND\Desktop\ereaseo\algorithms>gs On branch main Your branch is up to date with 'origin/main'.
Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: PTA/PTA1072/GasStation.cpp
Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: CMakeLists.txt deleted: PTA/PTA1072/GasStation.py modified: PTA/README.md
Untracked files: (use "git add <file>..." to include in what will be committed) "PTA/PTA1086/\346\265\213\350\257\225\347\202\271.pptx" cmake-build-debug-coverage/ utils/hello.txt
(base) D:\Users\LND\Desktop\ereaseo\algorithms>git checkout PTA\\PTA1072\\GasStation.py Updated 1 path from the index
On branch main nothing to commit, working tree clean fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Microsoft Windows [版本 10.0.19043.1165] (c) Microsoft Corporation。保留所有权利。
C:\Users\lnd\AppData\Roaming\Code\User>git init Initialized empty Git repository in C:/Users/lnd/AppData/Roaming/Code/User/.git/
C:\Users\lnd\AppData\Roaming\Code\User>git remote add main https://github.com/ednow/vscode-setting.git
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git status On branch main
No commits yet
Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore keybindings.json settings.json snippets/
nothing added to commit but untracked files present (use "git add" to track)
C:\Users\lnd\AppData\Roaming\Code\User>sp save On branch main
Initial commit
Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore keybindings.json settings.json snippets/
nothing added to commit but untracked files present (use "git add" to track) fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>gs On branch main
No commits yet
Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore keybindings.json settings.json snippets/
nothing added to commit but untracked files present (use "git add" to track)
C:\Users\lnd\AppData\Roaming\Code\User>git pull 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=main/<branch> main
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git commit -am "save" On branch main
Initial commit
Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore keybindings.json settings.json snippets/
nothing added to commit but untracked files present (use "git add" to track)
C:\Users\lnd\AppData\Roaming\Code\User>ga
C:\Users\lnd\AppData\Roaming\Code\User>git pull 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=main/<branch> main
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main fatal: branch 'main' does not exist
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main error: the requested upstream branch 'main/main' 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.
C:\Users\lnd\AppData\Roaming\Code\User>git pull 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=main/<branch> main
C:\Users\lnd\AppData\Roaming\Code\User>git pull main main remote: Enumerating objects: 189, done. remote: Counting objects: 100% (189/189), done. remote: Compressing objects: 100% (123/123), done. remote: Total 189 (delta 133), reused 121 (delta 65), pack-reused 0R Receiving objects: 100% (189/189), 21.14 KiB | 3.52 MiB/s, done. Resolving deltas: 100% (133/133), done. From https://github.com/ednow/vscode-setting * branch main -> FETCH_HEAD * [new branch] main -> main/main fatal: refusing to merge unrelated histories
C:\Users\lnd\AppData\Roaming\Code\User>sp save On branch main nothing to commit, working tree clean fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
C:\Users\lnd\AppData\Roaming\Code\User>git branch --set-upstream-to=main/main Branch 'main' set up to track remote branch 'main' from 'main'.
C:\Users\lnd\AppData\Roaming\Code\User>git commit -am "save" On branch main Your branch and 'main/main' have diverged, and have 1 and 46 different commits each, respectively. (use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
C:\Users\lnd\AppData\Roaming\Code\User>git pull fatal: refusing to merge unrelated histories
C:\Users\lnd\AppData\Roaming\Code\User>sp save On branch main Your branch and 'main/main' have diverged, and have 1 and 46 different commits each, respectively. (use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
C:\Users\lnd\AppData\Roaming\Code\User>git push --force origin main fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
C:\Users\lnd\AppData\Roaming\Code\User>git push --force main main Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 12 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (9/9), 6.15 KiB | 6.15 MiB/s, done. Total 9 (delta 1), reused 3 (delta 1), pack-reused 0 remote: Resolving deltas: 100% (1/1), done. To https://github.com/ednow/vscode-setting.git + 7b6818b...5caa472 main -> main (forced update)
-f, --fetch fetch the remote branches --tags import all tags and associated objects when fetching or do not fetch any tag at all (--no-tags) -t, --track <branch> branch(es) to track -m, --master <branch> master branch --mirror[=(push|fetch)] set up remote as a mirror to push to or fetch from
C:\Users\46257\AppData\Roaming\Code\User>git pul git: 'pul' is not a git command. See 'git --help'.
The most similar commands are pull push
C:\Users\46257\AppData\Roaming\Code\User>git pull remote: Enumerating objects: 9, done. remote: Counting objects: 100% (9/9), done. remote: Compressing objects: 100% (7/7), done. remote: Total 9 (delta 1), reused 9 (delta 1), pack-reused 0 Unpacking objects: 100% (9/9), 6.13 KiB | 56.00 KiB/s, done. From https://github.com/ednow/vscode-setting * [new branch] main -> origin/main 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:
C:\Users\46257\AppData\Roaming\Code\User>git pull main main fatal: 'main' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
C:\Users\46257\AppData\Roaming\Code\User>git branch --set-upstream-to=origin/master fatal: branch 'master' does not exist
C:\Users\46257\AppData\Roaming\Code\User>git branch --set-upstream-to=origin/ master fatal: branch 'master' does not exist
C:\Users\46257\AppData\Roaming\Code\User>git pull origin main From https://github.com/ednow/vscode-setting * branch main -> FETCH_HEAD error: The following untracked working tree files would be overwritten by merge: keybindings.json settings.json Please move or remove them before you merge. Aborting
C:\Users\46257\AppData\Roaming\Code\User>git pull origin main From https://github.com/ednow/vscode-setting * branch main -> FETCH_HEAD
To have this happen automatically for branches without a tracking upstream, see 'push.autoSetupRemote' in 'git help config'.
github
使用github api上传图片到指定仓库
lfs的错误
代码详情
1 2 3 4
Remote "origin" does not support the LFS locking API. Consider disabling it with: $ git config lfs.https://github.com/ednow/images.git/info/lfs.locksverify false Post "https://github.com/ednow/images.git/info/lfs/locks/verify": EOF error: failed to push some refs to 'https://github.com/ednow/images.git'