github - Removing single/multiple file from a git commit(s) -


i new git , trying clean branch intend remove multiple files added.

the files intend remove having additional white space came after removed code. without white space file same base branch , don't want show in pull request.

the pull request talking have multiple commits , @ stage want merge. want remove files branch showing because of white space. did try few things nothing helped-

git checkout origin/<remote-branch> <filename> git commit --amend 

but did not help, want pick specific files multiple commits made , remove them changes(branch).

what assuming branch master. change command if not

git reset master

git add -p

this interactively go though differences asking 1 one if want them


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -