Questions tagged [git-fetch]

git-fetch - Download objects and refs from another repository

The git command fetch retrieves changes done in a remote repository.

It will not merge the changes automatically into your local branches, use git pull for this or merge from the origin-branch after doing fetch.

See the man page for full details.

397 questions
0
votes
0 answers

How to clone a local Git repository using Node.js?

I'm trying to clone a Git repository that resides on my local drive into a new folder. So far, I've tried several modules, from which creationix/js-git seemed to be the most promising one. The code to fetch I use is: var source = '...', …
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
0
votes
2 answers

Are git pull and push repository wide operations or branch specific?

Trying to get a real handle on git : ) Is git pull a repository wide operation? Meaning, does it update your local branches (which are tracking remote branches) across the repository, or does it only fetch and merge for the currently checkedout…
Costa Michailidis
  • 7,691
  • 15
  • 72
  • 124
0
votes
1 answer

will fetch/merge not work if files are added or deleted in GitHub repository?

I made two changes to my remote repository in GitHub, by adding a new file and deleting a old file (by using the Web interface of GitHub). when I do : git fetch origin master remote: Counting objects: 6, done. remote: Compressing objects: 100%…
brain storm
  • 30,124
  • 69
  • 225
  • 393
0
votes
1 answer

git reset --mixed FETCH_HEAD

Say I have a repo called repo1 Within this repo i have 5 revisions, with A being the most recent A B C D E Say I have a workspace with files at revision B but for some reason git thinks I'm at revision C. I am interested in pulling down the git…
user3009900
  • 61
  • 1
  • 3
0
votes
2 answers

Understanding git fetches and your local repo

I read that, after doing a git fetch, your local repo has all the commits from the original repo, but that they are "not yet integrated into the cloned repository's local branches". What does this mean/imply? Do I then need to checkout my branch to…
user1768830
0
votes
1 answer

Git how do i rebase out certain commits?

Here is my tree: C (featureB) | | A - H (master) | | |- H - D (featureA) I would like to make it become C - D (featureB) | | A - H (master) | | |- H - D (featureA) How do I do this in git?
Popcorn
  • 5,188
  • 12
  • 54
  • 87
0
votes
2 answers

Working with GIt without branches

I am trying to work with GIT, without creating private branches. What that means is I directly work on my cloned repository (master) Now, Is that the right way to use GIT? I run into many issues related to updating my repository (GIT PULL / GIT…
Nida Sahar
  • 698
  • 4
  • 13
  • 29
-1
votes
1 answer

How to solve conflicts while pulling a branch from a remote repository?

I am currently working on a project that involves forking a specific GitHub repository. In my forked version, I am required to incorporate a branch named windows into my project. The original main branch is designed for the Linux operating system,…
Straw User
  • 47
  • 6
-1
votes
3 answers

Why does actions/checkout fetch the latest commit right after cloning the repository?

While trying to make sense of the action actions/checkout@version, I came across this answer in which the following was stated to explain what happens when the same action is executed: The default steps being executed are: The current repo in…
Mehdi Charife
  • 722
  • 1
  • 7
  • 22
-1
votes
1 answer

Exchange changes in Git on two different windows PC

We have a team of 5 people and we can git setup on each PC. Now let's say Tester1 reports some bug and Dev1 fixes that bug. Now, Dev1 doesn't want to push that change to the centralized system without confirmation of Tester1. Our Goal is Dev1 can…
-1
votes
1 answer

Updating a specific cloned branch on local machine

I have cloned just a specific git branch to my local machine. How do I incorporate the changes made in that branch to reflect in my local machine.
boredaf
  • 98
  • 1
  • 8
-1
votes
1 answer

Clonning again git repository instead of fetching and merging every branch

Is it often practice to delete local git repository and make fresh git clone instead of fetching every remote branch and merging it with local branches?
karol wołonciej
  • 109
  • 1
  • 1
  • 10
-1
votes
1 answer

Git pull vs fetch - no difference for newly fetched branches?

I've been reading about git pull and fetch commands and the difference between them. I agree there is a difference between the 2 commands when we have master branches both locally and remotely and therefore pull will integrate whatever changes we…
caffein
  • 303
  • 1
  • 10
-1
votes
1 answer

git: fetching another branch fails

I am doing parallel development with my team mate. We both created feature branches off of master (branchA - mine and branchB - his). I want to rebase on top of his branch. I am in my local branch (branchA) and issue the following command: git…
laconicdev
  • 6,360
  • 11
  • 63
  • 89
-1
votes
1 answer

how to find list of all commits between local branches and remote branches?

I am trying to find out list of commits between remote repository and local repository across all branches. How do generate this commit list? I have tried on my local machine running git log command with various options. It does not give me right…
1 2 3
26
27