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:

970 questions
109
votes
4 answers

Git: Pulling a rebased branch

Let me describe my situation: Mr Blond and Mr Orange are working on branch A that branches out of the master branch on commit M1. Branch A has 2 commits: A1 and A2. M1 \ \ A1 - A2 Meanwhile, Mr Orange committed and pushed 2 more…
Itai Hanski
  • 8,540
  • 5
  • 45
  • 65
96
votes
6 answers

How can you git pull only the current branch?

Is there a config way to set this up without having to specify which branch?
qodeninja
  • 10,946
  • 30
  • 98
  • 152
91
votes
6 answers

How can I make my local repository available for git-pull?

I have a working copy repository that I've been working in no problem; the origin for this repository is on GitHub. I'd like to make my working copy repository available as the origin for my build machine (a VM on another physical host), so that…
alastairs
  • 6,697
  • 8
  • 50
  • 64
89
votes
15 answers

Git Pull Failed: Invocation failed Unexpected end of file from server

I'm trying to execute a git pull using Android Studio's built-in button, but it fails with this message: Git Pull Failed Invocation failed Unexpected end of file from server java.lang.RuntimeException: Invocation…
Andras Sanislo
  • 1,209
  • 1
  • 9
  • 20
86
votes
7 answers

Git pull into wrong branch

Myself and one other developer had been merging and pushing our work to a non-master branch called toolwork. That way, we didn't impact the rest of the team. My topic branch was called DPM-93 and my git workflow was this. # do some work git checkout…
milkplus
  • 33,007
  • 7
  • 30
  • 31
84
votes
6 answers

Git: How to move back and forth between commits

I have a newbie question about Git: I need to move back and forth in a history of a branch. That means, I need to get all the files to the state they were in in some old revision, and then I need to get back to the latest state in the repository. I…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
83
votes
4 answers

How can I generate a git diff of what's changed since the last time I pulled?

I'd like to script, preferably in rake, the following actions into a single command: Get the version of my local git repository. Git pull the latest code. Git diff from the version I extracted in step #1 to what is now in my local repository. In…
Teflon Ted
  • 8,696
  • 19
  • 64
  • 78
82
votes
6 answers

How to avoid merge commits from Git pull when pushing to remote

I have a repository and some local changes to commit. Before committing, I pulled the changes onto my local using Egit in Eclipse. It creates a merge commit and I submit my commit over it. Now when I am trying to push to origin, it is showing that…
jazz199
  • 911
  • 1
  • 8
  • 12
82
votes
4 answers

Using GIT, how can I selectively merge changes from one commit on another 'fork'?

Take this scenario: I decide to 'fork' a codebase on github.com, and start doing my routine: Edit - Commit - Push; aka hack hack hack. After I made some changes, I see some changes another person has made on the same project, and I like them! I…
Tim
  • 2,051
  • 2
  • 14
  • 9
80
votes
2 answers

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

Let's say I have a private topic branch called develop with 2 commits ahead of master. What does git pull origin master do? Pull everything from the remote master in the local develop and merge it? Pull everything in the local master branch and…
Bite code
  • 578,959
  • 113
  • 301
  • 329
77
votes
4 answers

Where to find changes due to `git fetch`

I didn't want to lose some information after a git pull, so I did a git fetch before. Where can I read the new modifications after a git fetch? I went to the FETCH_HEAD file, but there was nothing more than a big number.
epsilones
  • 11,279
  • 21
  • 61
  • 85
64
votes
4 answers

How could I remove my approval from a pull request on github?

I approved a pull request of a random repository I do not have write access too. How can I remove or delete that approval?
mario
  • 751
  • 1
  • 5
  • 5
60
votes
5 answers

How can I pull an existing heroku app to new location for development?

I currently have the latest version of my code on another computer that I want to develop from (Home computer and laptop for when I'm out and about) I set up heroku for my app on my laptop. Now I need to associate my code on my desktop so that I can…
aarona
  • 35,986
  • 41
  • 138
  • 186
51
votes
3 answers

git submodule not pulling files in submodules

I thought I had it all worked out with this new project and thought that git submodules are the way to to develop and deploy my application. Set up my git repo (Drupal) and initialized it with the 7.12 tag of Drupal. Made my own branch. Then added…
geekdenz
  • 759
  • 1
  • 5
  • 8
50
votes
1 answer

how to make pull requests *without* a github account?

One of the goals of git is to be decentralized. If Github is to be the ... hub of git, then maybe it could take into account that there are other hubs out there, and allow pull requests to happen on git URLs that are not hosted on github. The…
anarcat
  • 5,605
  • 4
  • 32
  • 38
1
2
3
64 65