You still need to clone the graphic, remove the existing one, and add the new one to realize the modification.
Ref:
https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html#graphicslayer
Stone age API.
Use the following command in Linux will do the job: ls -d RepoNames* | xargs -I{} git -C {} pull