Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
2 answers
61 views

I recently did a migration of a project (Flutter, if it matters) from an old version of the framework it is using to a newer one. At one point in the migration branch, I deleted most of the source ...
Magnus's user avatar
  • 19.1k
1 vote
0 answers
59 views

I am trying to move some files from one repository (source repository) to a new one (target repository), and I want to restore all the previous commits of those files into the target repository to ...
santacodes's user avatar
2 votes
2 answers
804 views

Is there a way to 'remove' all commits prior to a specific commit all the way to the root commit? I figured git filter-repo does this kind of stuff? Although I wasn't sure if it will work when root ...
J...S's user avatar
  • 5,267
0 votes
1 answer
103 views

I'm looking for a way to remove certain old commits from a history for a bare git repo. Normally, I would do git squash and squash everything besides E and D commits. That does not work for a bare ...
GopherM's user avatar
  • 720
0 votes
1 answer
204 views

If I run git replace --graft SHA on a simple test repo, it seems to correctly truncate the repo (with respect to the provided SHA) when viewed via git log. However on a more complicated repo when I ...
Chris Stryczynski's user avatar
0 votes
1 answer
63 views

Hello to the community! As you can see in the diagram there is a commit (cm1) that includes a lot of binary files that was committed in a local branch. This commit was reverted at cm2 and at the final ...
Nebula's user avatar
  • 51
-1 votes
1 answer
1k views

How can I directly edit git history as to "drag 'n drop" changes from one commit to another? Within a branch I have three commits: A--B--C The contents of which are: A -- add file_a B -- ...
Drewzillawood's user avatar
3 votes
1 answer
66 views

I understand that a rebase rewrites history. But is there any record or sign that a rebase occurred left in the repository after the fact?
BVernon's user avatar
  • 3,957
0 votes
0 answers
46 views

I'm trying to delete/squash a bunch of old commits that I don't want on my git history which were just made to put together code from multiple locations that were not using git (local folders from ...
Girog's user avatar
  • 1
2 votes
4 answers
1k views

I have git repository A that uses B as a submodule. B's history has been rewritten after an LFS migration, but I would love it if A could still have its entire history functional. After the LFS ...
Bibzball's user avatar
  • 313
0 votes
0 answers
48 views

I would like to create a copy of a branch history (all the way from the initial commit to the current state, with all the merges, etc), but I need to apply a custom logic at each revision - something ...
Yuri Astrakhan's user avatar
2 votes
1 answer
242 views

I work with a code base shared by a number of people and have a particular branch that is for my personal use only. I made a huge mistake and about 10 commits ago removed a particular file type from ...
Leea Stott's user avatar
0 votes
1 answer
455 views

I have a repo that I share with other users, so I'd love a solution that minimizes what others have to do, if there's a way they can just pull the changes, I'd love that. Here's my current git ...
Francisco Inácio's user avatar
1 vote
1 answer
45 views

When working on a patchest, I'm expected to provide a set of clean commits. Therefore I often find myself rewriting history repeatedly before my commit-set is clean and ready to be merged. In this ...
Amir Gonnen's user avatar
  • 3,797
1 vote
1 answer
36 views

For simplicity, let's create a repository with two commits only: mkdir somedir cd somedir git init echo hello > somefile git add somefile git commit -m 'first' echo world >> somefile git ...
Enlico's user avatar
  • 30.3k
0 votes
0 answers
663 views

I have a repository hosted on GitHub in which I want to replace my LICENSE file with another LICENSE file in the git history. The original LICENSE file was added with the very first commit of the ...
JSAN L.'s user avatar
  • 502
6 votes
4 answers
4k views

We are working with a very simple structure in git. First we have our master branch. Below we have develop And finally we can have any feature branch We only use rebase for updating the history on our ...
Jose Francisco Chavez Carreon's user avatar
1 vote
2 answers
150 views

I have a git repo that looks like this: /C''-D''-F (featureB) A-B-C---D---E (main) \C'--D'--G (featureA) I would like to move the common commits C and D earlier in the main branch history so ...
procyon's user avatar
  • 31
2 votes
1 answer
277 views

We have a fairly big (1000+ commits) repository with 7 years worth of changes and 6 released versions (each version represented by a git tag). We would like to collapse the history so that prior to ...
mmix's user avatar
  • 6,348
1 vote
1 answer
1k views

AFAIK, Repository.Commits property return all commits reachable from current branch. I would like to get all possible commits, regardless the branch. I am using the following command : var ...
tigrou's user avatar
  • 4,596
0 votes
1 answer
725 views

Could anyone help me please. I want to move some Git repositories from one server to another, and rename them at the same time. The problem I'm having is when some repositories are submodules of other ...
Roger's user avatar
  • 1
0 votes
1 answer
577 views

Hello I have a very big git repository of 13.2 gb on azure devops. I wanted rewrite the history of this git repository. To reduce the repository size. I used the bfg repo cleaner. I followed all the ...
kalimk's user avatar
  • 1
1 vote
1 answer
105 views

Help: Git History Duplicated (O_O) I tried to get ride of a file which contains an API key so researched about the remove a file from git history and used the command provided here: https://youtu.be/...
Dominik Haas's user avatar
1 vote
0 answers
529 views

I tried to delete one file from git history. I am able to delete that file from local and did the forsce push for all branches my cli are: java -jar bfg-1.13.1.jar --delete-files "{config.js}&...
jiz's user avatar
  • 368
4 votes
1 answer
6k views

Is there a way to check what git rebase had changed after doing the rebase and exiting rebase mode? I used rebase to change the author name of previous commits. While trying to do so, I rebased in ...
Salahuddin's user avatar
  • 1,749
0 votes
1 answer
53 views

Lets say I have a history similar to this. Develop is periodically merged into master. a---b---c---d---i---j---k---o master \ / / e---f---g---h---l---m---n develop How to ...
CathrineVaage's user avatar
1 vote
1 answer
74 views

We have two repositories, 1. source repository 2. target repository When a commit comes in the source repository, I need to change the author name and author email then push to the target repository. ...
Liju Kuriakose's user avatar
0 votes
2 answers
2k views

I have accidentally committed a password to a BitBucket git repository some time ago, several commits behind the current master. While I removed the password later by committing without it, it still ...
Aqo's user avatar
  • 373
5 votes
2 answers
323 views

I want to combine a cvs and a svn repository into a new git repo, without loosing history of course. The catch is the svn repo is a direct continuation of the cvs repo historywise. Someone just ...
mplwork's user avatar
  • 1,160