How to integrate Sublime Text with GitHub?

后端 未结 5 755
傲寒
傲寒 2020-12-24 13:19

I thought it would be perfect if ST would have a plugin for syncing repo with the one on GitHub account, but I can\'t find such a thing.

There is Github Tools and su

5条回答
  •  再見小時候
    2020-12-24 13:57

    In addition to using Sublime Merge, mentioned above, you can invoke it directly with git difftool now.

    With Git 2.22 (Q2 2019), that will be easier, since the configuration will be done for you, and "git mergetool" learned to offer Sublime Merge (smerge) as one of its backends.

    As commented in SublimeTextIssues/Merge issue 19:

    Usage:

    git config --global merge.tool smerge 
    

    and then just git mergetool or git difftool.

    See commit f57b2ae, commit eb12adc (04 Apr 2019) by David Aguilar (davvid).
    (Merged by Junio C Hamano -- gitster -- in commit 5116eab, 22 Apr 2019)

    mergetools: add support for smerge (Sublime Merge)

    Teach difftool and mergetool about the Sublime Merge "smerge" command.

    Git now has a mergetools/smerge file with:

    diff_cmd () {
        "$merge_tool_path" mergetool "$LOCAL" "$REMOTE" -o "$MERGED"
    }
    
    merge_cmd () {
        if $base_present
        then
            "$merge_tool_path" mergetool "$BASE" "$LOCAL" "$REMOTE" -o "$MERGED"
        else
            "$merge_tool_path" mergetool "$LOCAL" "$REMOTE" -o "$MERGED"
        fi
    }
    

    Again: the configuration is done for you.

提交回复
热议问题