Reputation: 305
I am trying to setup remote repository for hybris, I have setup a website in the local system. Now I have to push only config, custom folder to the remote repository, I have created .ignoregit file also but the code is not getting committed after creating a repository. It shows nothing to commit
Upvotes: 0
Views: 1188
Reputation: 5810
hybris
is your root folderhybris
in such way so your folder path will be hybris/bin/platform/
.gitignore
file(find at root folder) to block everything except config & customSample .gitignore
# Folders to ignore at root(hybris)
hybris/log/
# Allow only custom extension
hybris/bin/*
!hybris/bin/custom/
# Absolute path to ignore
hybris/config/fileDontCommit.txt
# Skip Addon folders from custom storefront
**/_ui/addons
**/_ui-src/addons
**/views/addons
**/tld/addons
**/tags/addons
**/messages/addons
**/addonsrc
# Skip generated classes from custom
Generated*.java
Upvotes: 1
Reputation: 381
Here is an example for a .gitignore
file specific for hybris:
https://github.com/sap-commerce-tools/supportportal-example/blob/master/.gitignore
In your case you have to remove / comment line 14, as you want to commit hybris/config
to your repository if I understood you correctly.
Also check out my gradle plugin for hybris development. The plugin and examples can be found here: https://github.com/sap-commerce-tools
Upvotes: 1