$git pull
$ git pull
warning: no common commits
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
From github.com:nonfuxinyang/android-study
* [new branch] master -> origin/master
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> master
Seeing the second tip, we now know a solution. That is to specify the link relationship between the current working directory, working branch, and remote warehouse and branch. ≪ BR & gt;
for example, we set the master branch corresponding to the remote warehouse
git branch — set upstream master origin / Master
so every time we want to push or pull, we just need to enter Git push or git pull.
Before that, we have to specify the remote branch that we want to push or pull.
git push origin master
git pull origin master.
Read More:
- Error: You have not concluded your merge (MERGE_HEAD exists)
- You have not concluded your merge (MERGE_HEAD exists)
- Error occurred when sourcetree switches from all branches to current branch
- Resolving fatal: reusing to merge unrelated histories in Git
- fatal: refusing to merge unrelated histories
- Git solves pull origin error: the following untracked working tree files would be rewritten by merge
- Fatal: reusing to merge unrelated histories
- Error: your local changes to the following files would be rewritten by merge solution
- Solve the problem of prompt “failed to sync branch” when using Git
- [FAQ] after git merge, the push to Gerrit fails, indicating no new changes?
- Git push you are not allowed to upload merges
- You need to resolve your current index first
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- error: Your local changes to the following files would be overwritten by merge
- How to Fix GIT Push Error
- java.lang.VerifyError : inconsistent stackmap frames at branch target
- How to turn off merge request in gitlab
- Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then
- If you open the store in iTunes, you will be prompted to solve the 310 error
- You are not allowed to upload merges in Git push