public static void GitClone()
        {
            string path = KBCodeReviewHelper.GetKBCodeReviewDirectory();

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }

            string gitUser   = GetGitUser();
            string gitPwd    = GetGitPassword();
            string gitServer = PropertyAccessor.GetValueString(UIServices.KB.CurrentModel, "Git remote server");
            string user2     = PropertyAccessor.GetValueString(UIServices.KB.CurrentModel, "Git UserName");
            string url       = "https://" + gitUser + ":" + gitPwd.ToString() + "@" + gitServer;
            //string result2;
            //ArrayList debug = new ArrayList();
            //result2 = "User: "******"Password: "******"GitServer: " + GitServer.ToString();
            //debug.Add(result2);
            //result2 = "GitUrl: " + url.ToString();
            //debug.Add(result2);
            //result2 = "User2: " + user2.ToString();
            //debug.Add(result2);


            bool success = false;

            if (gitServer != "")
            {
                if ((gitUser != "") && (gitPwd != ""))
                {
                    success = GitHelper.GitClone(url);
                }
                else
                {
                    GxConsoleHandler.WriteOutput("Configure Git user and password");
                }
            }
            else
            {
                GxConsoleHandler.WriteOutput("Git remote server can not be null");
            }

            if (success)
            {
                success = GitHelper.SetNotepadAsEditor();
            }
        }
        //--------------------------------GIT-----------------------------------------------------------------------------

        private static bool GitInit()
        {
            string path = KBCodeReviewHelper.GetKBCodeReviewDirectory() + "/.git";

            if (!Directory.Exists(path))
            {
                return(GitHelper.GitInit());
            }
            else
            {
                GxConsoleHandler.WriteOutput("Git was already initialized");
                return(true);
            }
        }
        public static void RequestCodeReview()
        {
            string branchName = LocalBranchName();
            bool   resultOk;

            //First check if we can truly start a new process
            if (!GitHelper.HasPendingMerge(branchName))
            {
                resultOk = ResetEnvironment(branchName);
                if (resultOk)
                {
                    resultOk = GenerateCodeForReview(branchName);
                    if (resultOk)    //commit to local repository in <user>_reviewBranch
                    {
                        SendReview(branchName);
                    }
                }
            }
            else
            {
                GxConsoleHandler.WriteOutput("Cannot start a new Code-Review process until you complete the existing one.");
            }
        }