Below is the command which we are using in SVN to run from script file, now planning to change to GIT from SVN commands. Can anyone please let me know relevant command for below SVN command.
svn --username $CVS_USER --password $CVS_PWD diff --diff-cmd=diff -x "-p -U20" FILENAME.txt
For commit to GIT below the change i have made for the SVN command. Is it correct?
SVN :
svn --username $CVS_USER --password $CVS_PWD commit -F $CM_MSG_FILE --non-interactive --trust-server-cert File1.txt templates/File2.txt
GIT :
git add File1.txt templates/File2.xml
git commit -m $CM_MSG_FILE
git push origin BranchName