Code_Ninja
Code_Ninja

Reputation: 1867

How can I track changes made in newly added cartridge in atlassian sourcetree?

First of all, I am new to sourcetree.

Mostly when we change/add/remove a file in an existing file in repository, it gets reflected in the sourcetree's uncommitted changes.

I have added a new cartridge in my eCommerce Salesforce project. But even after refreshing or restarting my sourcetree, I cannot see the applied changes in the uncommitted changes.

I have checked modified files, pending files, untracked files and all files option too.

So what can I do to track the changes applied to the newly added cartridge?

Note: The cartridge is not committed yet.

Thanks in advance.

Upvotes: 0

Views: 344

Answers (1)

Brad
Brad

Reputation: 271

Looks like you got it sorted out OK which is great news. I'll throw this answer in just in case others come along and are looking for a solution.

Basically you just want to make sure that the directory where your new cartridge lives is added to the git repo. In my case- using Demandware- my git config lives in a directory that's two above my cartridges. It's something like this...

gitConfigLivesHere/../code/cartridges/cartridgesLiveHere

I'm thinking you might have your git keeping track of individual cartridges, but I've definitely found it easier to have your config live a couple levels up and then it will automatically track changes much more easily.

This solution also allows you to keep other files in source control that aren't cartridges... for instance any dw.json settings files or gruntbuild.js files that would live outside of your cartridges.

Hope this helps, Brad

Upvotes: 1

Related Questions