Is it possible to use Git only with some files or directories instead of commiting the whole project?
I just created new project in PHP and want to share only one folder but I don't know how to do it.
Is it possible to use Git only with some files or directories instead of commiting the whole project?
I just created new project in PHP and want to share only one folder but I don't know how to do it.
You can either ignore the stuff you don't want to commit, exclude them from commits or just don't add them.
Ignore
Use the .gitignore
-file manually or select all files you don't want to commit and right click -> Git -> Ignore -> Ignore
.
Exlude
Select the files (as above) and right click -> Git -> Ignore -> Exclude From Commit
or exclude them in the commit dialog.
See also