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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -