git push -u origin dev To git.mcb.ru:validation/vtests.git ! [rejected] dev -> dev…
- User
git push -u origin dev To git.mcb.ru:validation/vtests.git ! [rejected] dev -> dev (non-fast-forward) error: failed to push some refs to 'git.mcb.ru:validation/vtests.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Ismailov@ITPC010959 MINGW64 /z/ADD/ФД/Валидация/Рабочая директория/Исмаилов/mkb_libs/vtests (dev) $ git pull dev fatal: 'dev' 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.
Ismailov@ITPC010959 MINGW64 /z/ADD/ФД/Валидация/Рабочая директория/Исмаилов/mkb_libs/vtests (dev) $ git pull --all 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=origin/<branch> devIsmailov@ITPC010959 MINGW64 /z/ADD/ФД/Валидация/Рабочая директория/Исмаилов/mkb_libs/vtests (dev) $ git pull --all dev fatal: fetch --all does not take a repository argument
Ismailov@ITPC010959 MINGW64 /z/ADD/ФД/Валидация/Рабочая директория/Исмаилов/mkb_libs/vtests (dev) $ git pull dev fatal: 'dev' 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.
- Assistant
It seems you are encountering an issue with pushing and pulling changes from a Git repository. The error message you are seeing indicates that the remote branch
devhas changes that your local branch does not have. When you attempted to pull, you used incorrect syntax.To resolve the issue, you should perform the following steps:
- Make sure you have a correct remote set up, which is typically called
origin. Pull the changes from thedevbranch on the remote repository by explicitly stating the remote name and branch:
git pull origin devThis command fetches the changes from the
devbranch of theoriginremote and merges them into your local branch. - Make sure you have a correct remote set up, which is typically called