What is the difference between pull and clone in git?

They’re basically the same, except clone will setup additional remote tracking branches, not just master. Check out the man page: Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch -r), and creates and checks out an initial branch that is forked from the … Read more

Your configuration specifies to merge with the from the remote, but no such ref was fetched.?

What this means Your upstream—the remote you call origin—no longer has, or maybe never had (it’s impossible to tell from this information alone) a branch named feature/Sprint4/ABC-123-Branch. There’s one particularly common reason for that: someone (probably not you, or you’d remember) deleted the branch in that other Git repository. What to do This depends on what you want. … Read more

git pull from master into the development branch

The steps you listed will work, but there’s a longer way that gives you more options: The fetch command can be done at any point before the merge, i.e., you can swap the order of the fetch and the checkout, because fetch just goes over to the named remote (origin) and says to it: “gimme everything you have that I … Read more

Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied

It seems like the first one isn’t working because your user doesn’t have the permissions for changing that directory, and the second because your root user doesn’t have the right SSH keys for accessing that git repository. Depending on what you’re trying to do, it might be better to clone the repository to a different … Read more

Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied

It seems like the first one isn’t working because your user doesn’t have the permissions for changing that directory, and the second because your root user doesn’t have the right SSH keys for accessing that git repository. Depending on what you’re trying to do, it might be better to clone the repository to a different … Read more

What happens when I do git pull origin master in the develop branch?

git pull origin master pulls the master branch from the remote called origin into your current branch. It only affects your current branch, not your local master branch. It’ll give you history looking something like this: Your local master branch is irrelevant in this. git pull is essentially a combination of git fetch and git merge; it fetches the remote branch then … Read more