Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
70 views

How is the author and commit message of a squashed merge commit determined?

I'm trying to wrap my head around who should be the author/committer and what the commit message would be in specific git scenarios. I'll use the below example repo to illustrate my question. Assume ...
NFeruch - FreePalestine's user avatar
1 vote
0 answers
62 views

Why does fast-forwarding with git fetch reject an ahead branch?

To fast-forward from origin I can do git merge --ff-only origin/BR if BR is checked out, otherwise git fetch . origin/BR:BR (or git fetch origin BR:BR to also update origin/BR). Using git merge, if BR ...
H.v.M.'s user avatar
  • 1,599
0 votes
1 answer
3k views

GitLab says merge conflicts must be resolved but there are no conflicts

I have a feature/new-feature branch that I'm trying to fast-forward merge into qc branch. I've been doing this all this time without issues, when all of a sudden today, Gitlab does not allow me to ...
Rachel Nicolas's user avatar
0 votes
1 answer
787 views

Why I am getting Updates were rejected because the tip of your current branch is behind message even though I am pushing to a new repo just created [duplicate]

I Just created the new repository in Azure DevOps I tried to pushed my project from the local computer and getting error message "Updates were rejected because the tip of your current branch is ...
1026's user avatar
  • 1
0 votes
2 answers
74 views

Does git have a built-in command to ffwd all tracking branches?

I work with multiple branches, but I'm only modifying one of them (I'll call it working). I'd like to be able to get the latest for working but also get the latest for all of my tracking branches. ...
idbrii's user avatar
  • 11.7k
0 votes
1 answer
43 views

Can I imitate fast-forwarded pull if my local branch diverges with remote in Git?

I have three branches first, second, and master: D---E---F first / A---B---...---C---... master \ G---H second first is a final version and is waiting to be merged ...
soad's user avatar
  • 71
0 votes
1 answer
594 views

git merge --ff creates merge commit

I'm trying fast forward develop branch to the main as git checkout main git merge --ff develop git push but that for some reason creates merge commit which introduces a new hash Then I have did that: ...
JackTheKnife's user avatar
  • 4,074
-1 votes
1 answer
72 views

Using git to track deployable state of code

As I am not very familiar with git, I am not sure if the following ideas makes sense: In order to keep track of milestones while developing my code, I wanted to have a dedicated production branch ...
Radio Controlled's user avatar
0 votes
1 answer
298 views

Skip post-merge hook when fast-forwarding

I have post-merge hook that check a few things after a merge/pull. However, these check are unnecessary after a fast-forward merge and they just wasting several seconds for no good reason. This is ...
Piotr Siupa's user avatar
  • 4,719
3 votes
1 answer
473 views

Git: Android Studio "--ff-only" merge option is greyed out

I'm working on an Android java app and just finished a feature called "addmypicture" that I need to merge with "Master". I'd like to keep track of history so, as far as I know, the ...
Diego Perez's user avatar
  • 2,670
0 votes
1 answer
698 views

Fast forward merge after git flow hotfix

I have three branches production , develop and a fix branch as shown below (A,B and C are commits) : A (production,fix) \ B (develop) I want to be able to only perform fast forward ...
Cap Barracudas's user avatar
29 votes
2 answers
35k views

Git Merge Fast-Forward vs Git Rebase

What is the difference between a fast-forwarded git merge and a git rebase? Don't both accomplish keeping history linear and no merge commits? If so, why would one use one over the other? If not, ...
Newo's user avatar
  • 415
0 votes
0 answers
518 views

How to merge with merge commit

When I try to merge with command: git merge --no-ff -m <message> <source-branch> I get message: Already up to date. but it's not! When I'm trying to merge like: git merge origin <...
anna's user avatar
  • 433
-1 votes
2 answers
264 views

Fast Forward implementation in Realtime Audio byte array in java

I am managing audio capturing and playing using java sound API (targetDataLine and sourceDataLine). Now suppose in a conference environment, one participant's audio queue size got greater than jitter ...
Nafiul Alam Fuji's user avatar
0 votes
1 answer
567 views

Using GitHub website for non-fast-forward merging of PRs, instead of Git CLI

I'm wondering if there is an equivalent to performing the following to do a non-fast-forward merge into the current branch for preserving my branch topology: git merge --no-ff <some-branch> ......
jv-k's user avatar
  • 700
0 votes
0 answers
28 views

How to rebase git branch onto indirect parent branch when direct parent is merged [duplicate]

I have a feature branch say branch A and from A I have created branch B, later created branch C from B. Branch B got some more commits and got merged into branch A. I want to rebase branch C on branch ...
Diksha's user avatar
  • 416
1 vote
1 answer
1k views

In bitbucket/git, how to do fast forward merge after doing a merge-commit?

In bitbucket/git, how to do fast forward merge after doing a merge-commit? I have branched from develop in to a feature branch. After few commits on feature branch, i have merged feature branch in to ...
joven's user avatar
  • 391
1 vote
1 answer
419 views

Is there a way to get Git to print out the "fast forward" tasks between two commits?

When you run git pull from a remote repo, you'll see a list of all the files updated and the number of lines changed, along with approximate ratios of insertions/deletions. You'll also see any created,...
mngeek206's user avatar
  • 5,067
0 votes
0 answers
310 views

another git fast-forward merge revert question

I was on autopilot last night and unwittingly merged a large feature feature/bigfeature branch into our develop branch and pushed it to the remote origin/develop. I wanted develop to be completely ...
IcedDante's user avatar
  • 6,593
1368 votes
35 answers
1.8m views

How can I deal with this Git warning? "Pulling without specifying how to reconcile divergent branches is discouraged"

After a git pull origin master, I get the following message: warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one of the ...
Davide Casiraghi's user avatar
0 votes
1 answer
40 views

Why branch out and merge happen in Gitlab though fast forward is set

This is the situation, how is it possible? I hoped fast forward will prevent, and force to do rebase and have a linear branching.
János's user avatar
  • 34.7k
-1 votes
1 answer
213 views

Pushing a different commit to override previous commit on branch

Time for a noob question. Sorry if it seems too basic but had nowhere to turn, thanks in advance. I created a branch to push my changes and worked on that branch for a while. But master updated ...
necrygor's user avatar
133 votes
7 answers
40k views

How to do a fast-forward merge on GitHub?

So one of my colleagues attempted to merge a branch using GitHub's "merge via fast-forward" option in the web-interface, to keep the history clean from bogus merge commits (the master branch ...
umläute's user avatar
  • 30.7k
1 vote
1 answer
623 views

git rebase with the fast forward option enabled

Let's say I have a situation like this: a -- b -----------------c -- d -- e <-- Master \ f ------------l <-- Branch1 \ / g -- h -- i ...
Leos313's user avatar
  • 5,552
0 votes
0 answers
987 views

How to fast-forward replacing submodule with it's files in Git?

Git aborts merge when I try to git pull a commit (or set of commits) which do the following: Remove a submodule located at a subdirectory Add the submodule's contents at the subdirectory (different ...
M. Underhill's user avatar
4 votes
2 answers
4k views

What does the `Rebase and merge` merge strategy do on Bitbucket Server?

I was exploring the possible merge strategies on Bitbucket Server and one strategy caught my eye: "Rebase and merge" rebase + merge --no-ff I understand that most of the debate about merge strategies ...
kkarsko's user avatar
  • 103
0 votes
2 answers
512 views

Can't push to Github non-fast-forward error

I'm working on a site and I am using React-create-app and it's webpack configuration. I had been pushing to a Github repo without any issues. A couple days ago I turned the site I am making into a ...
Nick Kinlen's user avatar
  • 1,396
1 vote
1 answer
1k views

MPEG-DASH trick modes Representation

DASH-IF document explains that in order to support trick mode, separate Representations should be added in the MPD (source) The document also indicates that the content owner should signal the ...
John Smith's user avatar
0 votes
2 answers
64 views

A new file, git demands a merge, why?

At home I added do_next.py and successfully pushed it to the repository. At work I created cat.py , made commit and tried to push which failed: hint: Updates were rejected because the tip of your ...
Vladimir Zolotykh's user avatar
0 votes
1 answer
2k views

fast-forward error in Github

I'm new to git as part of an online course I'm doing. Currently doing a tutorial, and when I am getting the following error message when pushing to master for the first time: $ git push -u origin ...
Nakkiran Sunassee's user avatar
9 votes
2 answers
4k views

Gitlab merge request fast forward merge

I'm trying to setup a gitlab worflow for my team with gitlab-ci. We have a Gitlab CE version 10.2.4 with gitlab CI configured to run a build on every push. Now we would like to use the merge request ...
user2641570's user avatar
2 votes
1 answer
134 views

VSTFS 2015 - Merge Pull request set no-ff

I'm using a VS-TFS 2015 to manage my project and I've enabled pull-request and using branch policies. For manage the pull-request, I want that merges to develop branch (there is a Git Repo ahead) are ...
Ulu's user avatar
  • 23
1 vote
2 answers
275 views

Merge first n commits of branch to master

I have a branch from the most recent commit to master. the branch has two commits on it. I'd like to fast-forward merge the first of those commits onto master. I know I could do a cherry pick, but I ...
Toby's user avatar
  • 10k
2 votes
2 answers
1k views

What is the difference between git merge --ff <commit> and git reset <commit> --mixed

If I want to update my local branch, say master, to the remote branch gitlab/master, I see two options: I can merge the local branch with the remote branch using a fast forward merge. I can use reset ...
Paebbels's user avatar
  • 16.1k
0 votes
0 answers
41 views

Why does "git merge --no-ff" break blame and bisect? [duplicate]

I wanted to decide whether to use the --no-ff option (when merging). I read this article: Understanding the Git Workflow. Quote from there: Unfortunately, your feature branch contained checkpoint ...
Stefan Monov's user avatar
  • 11.6k
1 vote
1 answer
156 views

Git: setting merge.ff breaks fast-forward merges forever

I encounter a very weird problem in Git (version 2.10.1 (Apple Git-78)). It seems that if I once set merge.ff to false in the local repo config, there is no way back for this repo. I just cannot ...
Georg Jähnig's user avatar
2 votes
1 answer
3k views

Will Github count contributions from branches merged by -no-ff merge (not fast forward)?

Github article about problems with contributions has no words about --no-ff merges. I've found some answers in this reddit thread, but process is still not clear for me. EDIT: E.g. i have done some ...
Dolf Barr's user avatar
  • 529
17 votes
2 answers
10k views

git fast-forward one commit

* 9dbd857 (hotfix-correct-java-jdk-path, feature/add-ansible-galaxy-requirements-file) requirements.yml: adds maven and nodejs requirements * 1643619 (QOL-1640-enable-vpc-peering) roles/ansible-linux-...
Felipe Alvarez's user avatar
0 votes
1 answer
3k views

GIT merge --no-ff

In this post I will someone expert on git try to explain how git merge --no-ff can help us. I have read here http://nvie.com/posts/a-successful-git-branching-model/ (which I personally found to be a ...
jdeJuan's user avatar
  • 163
3 votes
1 answer
2k views

How do I set "--no-ff" option auto-enabled in IntelliJ IDEA?

Every time when I merge I have to set this option checked manually. Is there any opportunity to set this flag on for the project only one time? I already set my config preferences with command line ...
tworogue's user avatar
  • 409
0 votes
0 answers
680 views

Fast forward and Backward in VLC player with Swift 3

I use VLC player in my movie app. I can play video and adjust video volume. I would like to make Fast Forward and Backward with the speed of 2x, 3x, 4x. I really don't know how to implement this. :( ...
May Phyu's user avatar
  • 905
2 votes
0 answers
130 views

Git: require fast-forwardable merges, but don't fast-forward

I'd like to have a policy in a project where pull requests are only accepted if they can be fast-forward merges, but I actually want to create a merge commit when merging. In other words, use the ...
Ken Williams's user avatar
  • 23.7k
0 votes
1 answer
239 views

Why does Git need to be fast forward for VSTFS build?

I'm working on backing up some data in our dev VSTFS Git repository. When I run the build, of course the build directory gets wiped, synced with Git repo, data is downloaded from an outside source and ...
user1869558's user avatar
162 votes
3 answers
96k views

Prevent commits in master branch

(For simplicity) I have a master branch and a dev in my Git repository. I want to ensure the master branch is always working, so all work I do should be in the dev branch. However, when I merge my ...
Rasmus Bækgaard's user avatar
11 votes
1 answer
973 views

Git fast forward merge: Any chance to find the person to blame?

Suppose there is a feature branch 'my-feature'. While I was developing the feature, somebody merged it from 'my-feature' into 'master'. Because it was a fast-forward merge, no commit was made. Some of ...
digory doo's user avatar
  • 2,222
0 votes
2 answers
772 views

How is fast-forward implemented in Git so that two branches preserve?

In libgit2 headers I read that after fetch, if fast forward is signalized to be available during analysis, then what's needed is simple checkout of the fetched tip (and altering of heads/<branch>...
Rob Luca's user avatar
  • 183
0 votes
0 answers
60 views

git_checkout_tree() with conflicts, can it write the conflicting blocks into files?

Currently I tried following options: checkout_options.checkout_strategy = GIT_CHECKOUT_SAFE | GIT_CHECKOUT_ALLOW_CONFLICTS | GIT_CHECKOUT_CONFLICT_STYLE_MERGE; checkout_options.checkout_strategy = ...
Rob Luca's user avatar
  • 183
1 vote
1 answer
26 views

Undoing an old fast foreward commit

Looking back at some work I did, there was a fast forward commit that really makes it hard to tell what was worked on, so I would like to move that commit to it's own branch. Here is my current ...
thesecretmaster's user avatar
14 votes
4 answers
4k views

Determine if a merge will resolve via fast-forward

I want to know if a particular merge will resolve via "fast-forward" or not before running the merge command. I know I can specifically request for the merge to not be resolved via "fast-forward" (...
uayebforever's user avatar
0 votes
0 answers
34 views

Undo fast-forward merge without using hard reset [duplicate]

I'm using git with Sourcetree. I've accidentally fast-forward merge and pushed to remote. Now I want to undo this. I know there is a way like this: hard reset to commit before merge force push to ...
da32's user avatar
  • 733