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
0 votes
2 answers
65 views

We have had a big git repository that we have re-created under a new git url. The process was the following create new empty git repo copy paste the code from the old main branch, and commited it re-...
Martin Mlostek's user avatar
0 votes
0 answers
48 views

I have a bitbucket git repository which has two big folders (Folder1 and Folder2) with huge and important commit history inside. I want to create two new folders (NewParentFolder1 and NewParentFolder2)...
Ronnie's user avatar
  • 21
-2 votes
1 answer
59 views

Let's say I have a, b, c, d commits on main. I use "git checkout -b new-branch" while on d. On new-branch I make commits e, f. I want to remove d from main, but keep it in new-branch. If i ...
Frida M. O.'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
50 views

I have history in git like the following: <hash2> commit2 <hash1> commit1 <hash0> initial commit I do git rebase -i <hash0> and choose to edit (pick -> e) both commits (...
k1r1t0's user avatar
  • 867
0 votes
1 answer
187 views

For some reason, when I rename a file in Android Studio through the "refactor -> rename..." menu, the file is displayed in Git as new and the old file is deleted. Here's an example: There ...
Oleksii Kolotylenko's user avatar
1 vote
0 answers
70 views

Is there any way to show only subtree history, like with git log but filtering only specific subtree's related commits? When I add a subtree with --squash option only a merge commit is shown, but the ...
Alberto López's user avatar
1 vote
1 answer
34 views

I am trying to see all the previous commits i made to a repo. The new showIncomingChanges and showOutgoingChanges settings are supper useful in that regard. i can see what code i added/removed in ...
Ymo's user avatar
  • 143
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
3 answers
132 views

We have a master branch from which we periodically branch out ("cut") release branches. All the release branches are guaranteed to have the prefix release/. Suppose that at some time in the ...
Jason's user avatar
  • 3,005
1 vote
1 answer
70 views

I've read in other posts that a commit with parents of size 2 usually means a merge commit. This allows me to filter out basically all of those merge commits that say merge pull request or merge ...
abc123333's user avatar
1 vote
1 answer
72 views

If there are two git commits (or refs) A and B, and if A is known to be an ancestor of B in the history, is there an easy way to compute an expression that shows how A can be reached, starting from B (...
weiresr's user avatar
  • 649
1 vote
1 answer
242 views

I've just started using Git and GitLFS for version control on game projects that I'm making with the Unreal Engine. These projects use a lot of large binary files and so they're expensive to store on ...
samuelthomson's user avatar
0 votes
1 answer
41 views

I have 2 branches which is created at the same time from master branch. Both has been merged to master after changes. Branch history look like below: My git structure I want to change the structure so ...
Mirabror Sodikov's user avatar
1 vote
1 answer
155 views

How can I create a copy of a file and make it so that git understands where it is coming from? If I just do a copy and add it to the branch, git is not able to figure it out: $ git log --oneline --...
eftshift0's user avatar
  • 31.5k
0 votes
0 answers
48 views

I created a branch git checkout -b myBranch I made 3 commits onto the branch, lets name then One, Twoand Three. I did an interactive rebase. git rebase -i origin/master With pick One drop Two drop ...
Jan Hackenberg's user avatar
-3 votes
3 answers
538 views

I have special filenames with escape \ characters stored in Git repository on Debian 10 Linux. Problem: it is not possible to git checkout files on Windows, which have incompatible characters in the ...
klor's user avatar
  • 1,336
3 votes
3 answers
539 views

I have ISCSI node filenames with colons stored in GIT repository on Debian 10 Linux. Example: 'iscsi/nodes/iqn.2000-01.com.synology:NAS01-DS916.nas/ff11::111:11ff:ff1f:1ff1,3260,1/default' 'iscsi/...
klor's user avatar
  • 1,336
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
1 answer
118 views

My project consists of two folders, each with its own repository: project/ |--frontend/ |--|--.git |--backend/ |--|--.git So far I have worked on them locally. Now I want to create one global ...
Arctomachine's user avatar
0 votes
0 answers
129 views

From git-merge Documentation: By default, git merge command refuses to merge histories that do not share a common ancestor. This option can be used to override this safety when merging histories of ...
Ooker's user avatar
  • 3,404
0 votes
1 answer
89 views

Somehow, I accidentally merged a branch from an unrelated repository. Now I see tags and commits, that do not belong to my repository (it could well be I used the --ignore-unrelated-history command ...
kerner1000's user avatar
  • 3,578
-2 votes
1 answer
2k views

I'm a beginner in using Git as version control. I need to compile my Git History and compress it into a ZIP file. But I can't seem to find a way to find the physical file that shows Git History. The ...
Proov_14's user avatar
6 votes
4 answers
13k views

I use git for various projects (personal repositories only), and I want to do some housekeeping. I have a downloaded git project tree that has a large history of commits. After downloading I made a ...
nmw01223's user avatar
  • 1,745
0 votes
1 answer
848 views

I want to use VSCode git history extension but there's an error Command git.viewFileHistory not found What should I do?
H MK's user avatar
  • 1
2 votes
3 answers
117 views

I'd like to get a list of edited files since branching from my master branch (not comparing to the most recent head of master branch, but master at the point of branching). Is this possible? This ...
Elliott's user avatar
  • 2,730
-2 votes
1 answer
106 views

How can I get git history (date range) log to a file without author, date, commit message and commit hash?
imal sisira kumara's user avatar
0 votes
1 answer
892 views

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
1 vote
1 answer
41 views

I've just written myScript.sh, which fixes something specific at this point in time in my project and will do nothing after being executed once. Since all our code is tracked in Git, and to share it ...
Httqm's user avatar
  • 849
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
2 votes
1 answer
802 views

Following the gitflow branching model on a project, my "development branch" is named dev, my release branches are prefixed with release/, and my "production branch" is master. Our ...
StoneThrow's user avatar
  • 6,435
0 votes
2 answers
885 views

I have always kept track of files in the child repo. But now I also need to keep track of another child, so I renamed them to child1 and child2. I would like to maintain only a parent directory that ...
Polizi8's user avatar
  • 285
2 votes
1 answer
179 views

I have the below scenario: main branch before consolidation: │ └── dir1 │ │ └── python1 │ │ │ └── test1.py │ └── dir2 │ │ └── python2 │ │ │ └── test2.py │ └── dir3 │ │ └──...
arielma's user avatar
  • 1,428
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
2 votes
1 answer
56 views

I have situation where I need to delete many documentation files like *.html files from git history These HTML files over years of development causing git repo to bloat its size. It's difficult now ...
Vinod_Neelakantam's user avatar
1 vote
1 answer
1k views

I'd like to rebase my branch onto an older commit to exclude code added by the newer commits. What I have: A---B---C---D---E master \ F---G---H---I---J experiment ...
mcp's user avatar
  • 2,106
2 votes
2 answers
8k views

I have 6 commits and each of them have multiple files commited. My "problem" is, that I commited a file which I should not commit, and I want it to dissapear from that old commit, so I can‘t ...
rodriciru's user avatar
  • 151
6 votes
1 answer
645 views

At first, I made a shallow-clone. After this, I found some old commits introducing some large files. For example, these old commits replaced a binary file again and again. Now, I didn't want my local ...
Hobin C.'s user avatar
  • 793
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
0 votes
2 answers
181 views

I backup my CSS userstyles to a git repo like so: ❯ fd stylus-2021-05-18.json stylus-2021-05-20.json These ...
HappyFace's user avatar
  • 4,193
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
4 votes
1 answer
1k views

Since some point (probably update) Pycharm stopped showing git history for one of project subfolders. Question Does it have a functionality to enable all commit history for my sub-folder? I tried to ...
vitaliis's user avatar
  • 4,197
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
2k views

I've got following history in git: * 02e085a (master) readme update | * 1d940da (HEAD -> b1) search.py | | * 7aaa12d (b2) file2 | |/ | * 7be9db9 file1 |/ * 22601c0 initial commit Now I'm on b2 and ...
ST Renegade's user avatar
0 votes
0 answers
110 views

I want to preface this question by saying that I'm aware of the fact that rewriting history in Git is usually a bad practice, but I'm facing a problem to which I cannot seem to find another type of ...
raffasansone's user avatar
0 votes
1 answer
502 views

I'm using Git to manage a small repository of small shell scripts. There's a lot of them and none justify a repository of their own, so I clump them together in a single repository. To keep things ...
dkd6's user avatar
  • 85
2 votes
1 answer
342 views

I have a large CSV file where data usally only get appended and then git committed. But I am curious if there were some commits in the past which deleted lines from this file. To date, several hundred ...
Simon Schürg's user avatar
0 votes
0 answers
52 views

The organization I am working for decided to keep merged branches for history purposes in the repository. The repository has 900+ tracked merged branches and this brings its performance down. Is there ...
gtludwig's user avatar
  • 5,671
11 votes
3 answers
13k views

I need to see the history of branches that i was using. For example i have 4 branches: master, b-1, b-2, b-1-1. Thе branch "b-1-1" is child of branch "b-1". First i was at master ...
john2994's user avatar
  • 433