How to do code-review and submit with git command like 'git commit'?












0















I would like to do code-review and submit with git command line, since git support commit by cmmand line, so which command of git can do the the code-review and submit?










share|improve this question























  • Code-reviews are not a git feature. All you can do is commit to a certain remote branch and let a git repository management framework, like GitHub or GitLab, handle your code reviews via mechanisms like pull or merge requests.

    – kowsky
    Jan 3 at 8:02













  • @kowsky Could you explain regarding 'handle your code reviews via mechanisms like pull or merge requests' ?

    – Huang
    Jan 3 at 8:48











  • If you use GitLab as repository management framework, you can issue merge requests to merge one branch into another in GitLab. If you use GitHub as repository management framework, you can issue pull requests to merge one branch into another in GitHub. Both are framework specific ways to perform code reviews. Git itself does not offer such mechanisms. If you want a convenient way to review code, you will need to use a platform. There are plenty: GitHub, GitLab, Bitbucket...

    – kowsky
    Jan 3 at 9:17













  • @kowsky get it, thanks for your detail explain.

    – Huang
    Jan 3 at 11:32
















0















I would like to do code-review and submit with git command line, since git support commit by cmmand line, so which command of git can do the the code-review and submit?










share|improve this question























  • Code-reviews are not a git feature. All you can do is commit to a certain remote branch and let a git repository management framework, like GitHub or GitLab, handle your code reviews via mechanisms like pull or merge requests.

    – kowsky
    Jan 3 at 8:02













  • @kowsky Could you explain regarding 'handle your code reviews via mechanisms like pull or merge requests' ?

    – Huang
    Jan 3 at 8:48











  • If you use GitLab as repository management framework, you can issue merge requests to merge one branch into another in GitLab. If you use GitHub as repository management framework, you can issue pull requests to merge one branch into another in GitHub. Both are framework specific ways to perform code reviews. Git itself does not offer such mechanisms. If you want a convenient way to review code, you will need to use a platform. There are plenty: GitHub, GitLab, Bitbucket...

    – kowsky
    Jan 3 at 9:17













  • @kowsky get it, thanks for your detail explain.

    – Huang
    Jan 3 at 11:32














0












0








0








I would like to do code-review and submit with git command line, since git support commit by cmmand line, so which command of git can do the the code-review and submit?










share|improve this question














I would like to do code-review and submit with git command line, since git support commit by cmmand line, so which command of git can do the the code-review and submit?







git command-line submit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 3 at 7:52









HuangHuang

61




61













  • Code-reviews are not a git feature. All you can do is commit to a certain remote branch and let a git repository management framework, like GitHub or GitLab, handle your code reviews via mechanisms like pull or merge requests.

    – kowsky
    Jan 3 at 8:02













  • @kowsky Could you explain regarding 'handle your code reviews via mechanisms like pull or merge requests' ?

    – Huang
    Jan 3 at 8:48











  • If you use GitLab as repository management framework, you can issue merge requests to merge one branch into another in GitLab. If you use GitHub as repository management framework, you can issue pull requests to merge one branch into another in GitHub. Both are framework specific ways to perform code reviews. Git itself does not offer such mechanisms. If you want a convenient way to review code, you will need to use a platform. There are plenty: GitHub, GitLab, Bitbucket...

    – kowsky
    Jan 3 at 9:17













  • @kowsky get it, thanks for your detail explain.

    – Huang
    Jan 3 at 11:32



















  • Code-reviews are not a git feature. All you can do is commit to a certain remote branch and let a git repository management framework, like GitHub or GitLab, handle your code reviews via mechanisms like pull or merge requests.

    – kowsky
    Jan 3 at 8:02













  • @kowsky Could you explain regarding 'handle your code reviews via mechanisms like pull or merge requests' ?

    – Huang
    Jan 3 at 8:48











  • If you use GitLab as repository management framework, you can issue merge requests to merge one branch into another in GitLab. If you use GitHub as repository management framework, you can issue pull requests to merge one branch into another in GitHub. Both are framework specific ways to perform code reviews. Git itself does not offer such mechanisms. If you want a convenient way to review code, you will need to use a platform. There are plenty: GitHub, GitLab, Bitbucket...

    – kowsky
    Jan 3 at 9:17













  • @kowsky get it, thanks for your detail explain.

    – Huang
    Jan 3 at 11:32

















Code-reviews are not a git feature. All you can do is commit to a certain remote branch and let a git repository management framework, like GitHub or GitLab, handle your code reviews via mechanisms like pull or merge requests.

– kowsky
Jan 3 at 8:02







Code-reviews are not a git feature. All you can do is commit to a certain remote branch and let a git repository management framework, like GitHub or GitLab, handle your code reviews via mechanisms like pull or merge requests.

– kowsky
Jan 3 at 8:02















@kowsky Could you explain regarding 'handle your code reviews via mechanisms like pull or merge requests' ?

– Huang
Jan 3 at 8:48





@kowsky Could you explain regarding 'handle your code reviews via mechanisms like pull or merge requests' ?

– Huang
Jan 3 at 8:48













If you use GitLab as repository management framework, you can issue merge requests to merge one branch into another in GitLab. If you use GitHub as repository management framework, you can issue pull requests to merge one branch into another in GitHub. Both are framework specific ways to perform code reviews. Git itself does not offer such mechanisms. If you want a convenient way to review code, you will need to use a platform. There are plenty: GitHub, GitLab, Bitbucket...

– kowsky
Jan 3 at 9:17







If you use GitLab as repository management framework, you can issue merge requests to merge one branch into another in GitLab. If you use GitHub as repository management framework, you can issue pull requests to merge one branch into another in GitHub. Both are framework specific ways to perform code reviews. Git itself does not offer such mechanisms. If you want a convenient way to review code, you will need to use a platform. There are plenty: GitHub, GitLab, Bitbucket...

– kowsky
Jan 3 at 9:17















@kowsky get it, thanks for your detail explain.

– Huang
Jan 3 at 11:32





@kowsky get it, thanks for your detail explain.

– Huang
Jan 3 at 11:32












1 Answer
1






active

oldest

votes


















0














As you can see in comments above, code reviews are not built-in to git. But git allows you to be very creative when it comes to your workflow.



Here you find two very popular workflows (Git Flow and GitHub Flow) discussed in detail: https://youtu.be/ww4xpcvzLHc. Both of which make use of code reviews before code changes are merged or pulled into the "productive" envoronment (i.e. the master branch or origin repo).






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54018305%2fhow-to-do-code-review-and-submit-with-git-command-like-git-commit%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    As you can see in comments above, code reviews are not built-in to git. But git allows you to be very creative when it comes to your workflow.



    Here you find two very popular workflows (Git Flow and GitHub Flow) discussed in detail: https://youtu.be/ww4xpcvzLHc. Both of which make use of code reviews before code changes are merged or pulled into the "productive" envoronment (i.e. the master branch or origin repo).






    share|improve this answer




























      0














      As you can see in comments above, code reviews are not built-in to git. But git allows you to be very creative when it comes to your workflow.



      Here you find two very popular workflows (Git Flow and GitHub Flow) discussed in detail: https://youtu.be/ww4xpcvzLHc. Both of which make use of code reviews before code changes are merged or pulled into the "productive" envoronment (i.e. the master branch or origin repo).






      share|improve this answer


























        0












        0








        0







        As you can see in comments above, code reviews are not built-in to git. But git allows you to be very creative when it comes to your workflow.



        Here you find two very popular workflows (Git Flow and GitHub Flow) discussed in detail: https://youtu.be/ww4xpcvzLHc. Both of which make use of code reviews before code changes are merged or pulled into the "productive" envoronment (i.e. the master branch or origin repo).






        share|improve this answer













        As you can see in comments above, code reviews are not built-in to git. But git allows you to be very creative when it comes to your workflow.



        Here you find two very popular workflows (Git Flow and GitHub Flow) discussed in detail: https://youtu.be/ww4xpcvzLHc. Both of which make use of code reviews before code changes are merged or pulled into the "productive" envoronment (i.e. the master branch or origin repo).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 3 at 11:19









        salchintsalchint

        1645




        1645
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54018305%2fhow-to-do-code-review-and-submit-with-git-command-like-git-commit%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Monofisismo

            Angular Downloading a file using contenturl with Basic Authentication

            Olmecas