Hi, is there something similar to `git fetch` that...
# sdf
m
Hi, is there something similar to
git fetch
that will match the SDF project (all the files) on the account with the local version? I mean maybe someone on the team updated a certain file and they forgot to tell others. If I deploy, their work will be erased.
m
• Make sure all of your local changes are committed to git. • suitecloud object:import ... // to import all objects • suitecloud file:import ... // to import all files • Use the git extension in vscode to tell you what has changed.
m
I am not sure if importing ALL objects in the account is a good idea. But you are saying it is usually done through git, right? Ok, I will just ask the team.
m
I'm not saying it's a good idea either, but if you want to compare your NetSuite environment with your local dev environment, this is probably the easiest way to do it. You could create a new git branch, import all of your files and objects from your production environment, commit those changes to git, then import all of the objects from your dev environment, use git to see what has changed. When you're done, delete the branch.
d
m
@Mike Robbins I got it now, thanks
@David B Thanks, will go through it
👍 1
r
We generate a custom deploy.xml file for each branch that only adds files with changes in the git log. If objects are added, then their associated script files are also added since they’re dependencies and are needed for deployment. Now days, we try to focus features to the main release and have accompanying user stories and tasks which are tested and then merged to the feature before going into the QA release pipeline. Limiting the changes to just what we’re working on and ensuring production branch matches the target server before pushing reduces the risk of overwriting others changes.
👍 1