github - How to commit using Git without touching a folder -
i have project contains many folder. want commit folder except 1 lets suppose name photo
.
how can commit whole project without touching folder using git
adding folder .gitignore
should do, if never want commit folder.
however, if want ignore folder temporary, solution stage (prepare commit) everything, , unstage mentioned folder:
git add . git reset path/to/directory
this way can craft commit without folder , add folder in separate commit.
Comments
Post a Comment