git-rewrite-history Questions
3
Hello I have successfully rewrote history and got the 5 folders I wanted to extract using git filter-branch -f --prune-empty --tree-filter 'rm -rf <all unwanted dirs>' and kept all git histor...
Beatup asked 21/4, 2014 at 22:26
3
I would like to merge multiple Git repositories (let's say repoA and repoB) into one new repository. The new repository (repoNew) should contain each repoA and repoB in a separate subdirectory. Sin...
Sitting asked 4/3, 2014 at 11:2
22
Solved
I have the following commit history:
HEAD
HEAD~
HEAD~2
HEAD~3
git commit --amend modifies the current HEAD commit. But how do I modify HEAD~3?
Anthropophagi asked 27/7, 2009 at 5:19
22
Solved
I have the following commit history:
HEAD
HEAD~
HEAD~2
HEAD~3
git commit --amend modifies the current HEAD commit. But how do I modify HEAD~3?
Granulite asked 27/7, 2009 at 5:19
42
Solved
How do I change the author for a range of commits?
Scathing asked 15/4, 2009 at 3:9
42
Solved
How do I change the author for a range of commits?
Oregano asked 15/4, 2009 at 3:9
24
Solved
I accidentally dropped a DVD-rip into a website project, carelessly git commit -a -m ..., and, zap, the repository was bloated by 2.2 GB. Next time I made some edits, deleted the video file, and co...
Spracklen asked 20/1, 2010 at 11:18
25
Solved
How do you squash your entire repository down to the first commit?
I can rebase to the first commit, but that would leave me with 2 commits.
Is there a way to reference the commit before the first...
Emeraldemerge asked 1/11, 2009 at 8:38
5
Solved
I have git repository with many, many (2000+) commits, for example:
l-- m -- n
/
a -- b -- c -- d -- e -- f -- g -- h -- i -- j -- k
\
x -- y -- z
and I want to truncate old log history - d...
Sherd asked 31/1, 2017 at 8:56
3
Solved
I committed some test code before merging in a remote branch. This merge had a lot of conflicts and took some serious time to put right. So my history looks something like this:
7ab562c Merge from...
Telegram asked 14/5, 2013 at 9:18
9
Solved
Suppose you have a history containing the three commits A, B and C:
A-B-C
I would like to combine the two commits A and B to one commit AB:
AB-C
I tried
git rebase -i A
which opens up my e...
Clymer asked 12/1, 2009 at 14:53
9
Solved
Suppose you have a history containing the three commits A, B and C:
A-B-C
I would like to combine the two commits A and B to one commit AB:
AB-C
I tried
git rebase -i A
which opens up my e...
Nisi asked 12/1, 2009 at 14:53
2
Solved
We need to add some file in a specific past commit on a repo and we are ready to rewrite history so it affects to all branches diverging from that commit's children. We are trying to use git filter...
Aleta asked 15/1, 2019 at 13:14
8
Solved
I have made a series of commits in Git and I realise now that I forgot to set my user name and user email properties correctly (new machine). I have not yet pushed these commits to my repository, s...
Maes asked 12/2, 2011 at 22:48
7
Solved
I've always used an interface based git client (smartGit) and thus don't have much experience with the git console.
However, I now face the need to substitute a string in all .txt files from histo...
Televise asked 5/11, 2010 at 22:33
30
Solved
The answers to How to modify existing, unpushed commits? describe a way to amend previous commit messages that haven't yet been pushed upstream. The new messages inherit the timestamps of the origi...
Pudgy asked 18/1, 2009 at 6:13
12
Solved
I would like to put a Git project on GitHub but it contains certain files with sensitive data (usernames and passwords, like /config/deploy.rb for capistrano).
I know I can add these filenames to ...
Hertfordshire asked 16/5, 2009 at 14:49
2
Question
How can I list all the commits that delete any file in the repo? (not a specific file, but all the commits that delete anything).
Context
We have a multiple-years-old repo and we plan to r...
Safranine asked 27/6, 2022 at 19:51
2
I'm following this answer to remove a single file containing credentials from git history. I have git 2.35.1 and filter-repo 22826b5a68b6. The command I need is apparently:
git-filter-repo --path a...
Etom asked 22/3, 2022 at 18:33
2
Solved
I'm often rebasing interactive to make tiny changes in the history (for example removing a blank line, or editing one line). In most cases those changes are based on some peer review.
At first I do...
Fm asked 19/4, 2017 at 8:6
3
Solved
So I read a lot about how to change previous commit's email address but for some reason mine is not updating.
I did like 40 commits to my private repo with my local email ([email protected]) w...
Mourant asked 18/1, 2016 at 9:5
4
Solved
Very basic git question:
I uploaded some compromising information to Github and am using bfg to clean the repo. I followed the documentation and performed the following actions:
$ git clone --mir...
Seigler asked 6/1, 2014 at 22:47
1
Solved
I'm busy converting all my existing SVN repositories to Git, and at the same time also take the opportunity to use Git's ability to easily rewrite some history. For this I'm also using git filter-r...
Misbehave asked 8/10, 2020 at 8:33
3
I am very new to github and am trying to incorporate it into my work for the first time. I am working in RStudo, using the commit and push buttons in the gui. I put some of my data in the folder on...
Foyer asked 18/10, 2016 at 18:41
5
I'm trying to migrate a git repo from Kiln to Github. I can add the new remote just fine, but when I try to push master to the new remote, I get the following error:
Counting objects: 8691, done.
...
Combustible asked 29/5, 2013 at 18:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.