[Help] git issue

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[Help] git issue

Post by ayu »

Hey guys, I'm in a bit of a pickle here with git ^^

I have commited and pushed two times with git, and it created a small problem.

The first commit/push has a folder with some files that has to be removed and also removed from history in git.
And the second (newest) commit/push does not contain it, but the first one still needs to be removed (it needs to be completely removed from the repository and the history files, and doing so manually is not a simple task).

Can I do this with git rebase? How? Or is there another method?

Thanks in advance :)
"The best place to hide a tree, is in a forest"

User avatar
Stavros
ΜΟΛΩΝ ΛΑΒΕ
ΜΟΛΩΝ ΛΑΒΕ
Posts: 1098
Joined: 02 Jan 2006, 17:00
18
Location: Mississippi, U.S.A.

Re: [Help] git issue

Post by Stavros »

Try doing a (may or may not need forward shash before folder

Code: Select all

git rm -r /folder

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: [Help] git issue

Post by ayu »

Sorry forgot about this thread.

Solved it by rebasing the commits so that the faulty one was removed by merge.

Thanks though :)
"The best place to hide a tree, is in a forest"

Post Reply