Questions tagged [pull]

In distributed version control, pull or fetch is the action of transferring remote changes into a local repository.

In distributed version control, pull or fetch is the action of transferring remote changes into a local repository.

Examples:

852 questions
714
votes
12 answers

Git pull a certain branch from GitHub

I have a project with multiple branches. I've been pushing them to GitHub, and now that someone else is working on the project I need to pull their branches from GitHub. It works fine in master. But say that someone created a branch xyz. How can I…
tybro0103
  • 43,805
  • 32
  • 138
  • 167
623
votes
6 answers

git pull from master into the development branch

I have a branch called dmgr2 (development) and I want to pull from the master branch (live site) and incorporate all the changes into my development branch. is there a better way to do this? here is what I had planned on doing, after committing…
Matthew Colley
  • 8,307
  • 9
  • 39
  • 59
413
votes
10 answers

How do you attach a new pull request to an existing issue on github?

I'm not sure, but I have a vague memory of creating a github pull request with "Issue 4" or something in the title, and it automatically attached itself to Issue 4 in the project that I was submitting it to. I tried it again recently and it didn't…
MatrixFrog
  • 20,873
  • 10
  • 56
  • 88
284
votes
20 answers

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

I am getting this error for pull: Your configuration specifies to merge with the ref 'refs/heads/feature/Sprint4/ABC-123-Branch' from the remote, but no such ref was fetched. This error is not coming for any other branch.The special thing…
Farrukh Chishti
  • 4,865
  • 6
  • 30
  • 45
281
votes
6 answers

Does "git fetch --tags" include "git fetch"?

A nice and simple question - is the function of "git fetch" a strict sub-set of git fetch --tags? I.e. if I run git fetch --tags, is there ever a reason to immediately run git fetch straight afterward? What about git pull and git pull --tags? Same…
davidA
  • 10,282
  • 8
  • 54
  • 76
275
votes
12 answers

What is the difference between pull and clone in git?

What is the difference between doing (after mkdir repo and cd repo): git init git remote add origin git://github.com/cmcculloh/repo.git git fetch --all git pull origin master and git clone git://github.com/cmcculloh/repo.git I mean, obviously one…
cmcculloh
  • 43,791
  • 36
  • 94
  • 126
272
votes
8 answers

How to undo a git pull?

I would like to undo my git pull on account of unwanted commits on the remote origin, but I don't know to which revision I have to reset back to. How can I just go back to the state before I did the git pull on the remote origin?
Kartins
  • 3,019
  • 2
  • 15
  • 17
266
votes
16 answers

git pull error :error: remote ref is at but expected

Full message: error: Ref refs/remotes/origin/user is at 3636498c2ea7735fdcedc9af5ab3c8689e6abe77 but expected a21359c6cc2097c85775cde6a40105f4bd7100ec From github.com:{github project url} ! a21359c..6273ffc user -> origin/user (unable to update…
Sanjeev Kumar Dangi
  • 5,915
  • 5
  • 25
  • 30
259
votes
5 answers

How to merge remote master to local branch

I have a local branch of a project ("configUpdate") that I've forked from somebody else's project and I've done a load of changes on it and would like to merge the changes they've made in to my local branch. I've tried git pull --rebase origin…
Martyn
  • 15,782
  • 24
  • 69
  • 104
231
votes
31 answers

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

Help me please, I am trying to run this in my terminal: asgard@asgard-A7N8X2-0:~/CollegePortal$ git pull error: cannot open .git/FETCH_HEAD: Permission denied Then I try this one asgard@asgard-A7N8X2-0:~/CollegePortal$ sudo git pull Permission…
Arthur Yakovlev
  • 7,421
  • 7
  • 30
  • 44
217
votes
13 answers

How do I force Kubernetes to re-pull an image?

I have the following replication controller in Kubernetes on GKE: apiVersion: v1 kind: ReplicationController metadata: name: myapp labels: app: myapp spec: replicas: 2 selector: app: myapp deployment: initial template: …
Torsten Bronger
  • 6,770
  • 7
  • 28
  • 39
207
votes
10 answers

How to pull specific directory with git

I have a project with git, and I just want to clone or pull a specific directory, like myproject/javascript just like subversion does. make some changes, commit and push back again. It's possible?
bluefoot
  • 9,184
  • 11
  • 40
  • 54
166
votes
9 answers

Error: Cannot pull with rebase: You have unstaged changes

I have started collaborating with a few friends on a project & they use the heroku git repository. I cloned the repository a few days ago and they have since made some changes so I am trying to get the latest updates I ran the git pull --rebase…
user3597950
  • 6,903
  • 6
  • 23
  • 33
166
votes
12 answers

Delete local Git branches after deleting them on the remote repo

I want to have my local and remote repositories always in sync in terms of branches. After a Pull Request review on GitHub, I merge and remove my branch there (remote). How could I fetch this information in my local repository and get Git to remove…
sf89
  • 4,570
  • 7
  • 20
  • 27
161
votes
5 answers

Discard all and get clean copy of latest revision?

I'm moving a build process to use mercurial and want to get the working directory back to the state of the tip revision. Earlier runs of the build process will have modified some files and added some files that I don't want to commit, so I have…
Rory
  • 36,412
  • 47
  • 153
  • 230
1
2 3
56 57