Skip to content

Instantly share code, notes, and snippets.

@vladmeh
Last active February 27, 2025 22:45
Show Gist options
  • Save vladmeh/d3e328e8c43a530a2a0dff84737175e3 to your computer and use it in GitHub Desktop.
Save vladmeh/d3e328e8c43a530a2a0dff84737175e3 to your computer and use it in GitHub Desktop.

Revisions

  1. vladmeh revised this gist Feb 27, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git_aliases
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    // vscode editor
    git config --global core.editor "code --wait"
    $ git config --global core.editor "code --wait"

    // checkout
    $ git config --global alias.co checkout
  2. vladmeh revised this gist Feb 27, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions git_aliases
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    // vscode editor
    git config --global core.editor "code --wait"

    // checkout
    $ git config --global alias.co checkout
    $ git config --global alias.ch checkout
  3. vladmeh revised this gist Sep 1, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git_aliases
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,6 @@ $ git config --global alias.ci commit
    // status
    $ git config --global alias.st status

    // push
    // push (only CMD)
    $ git config --global alias.pushall "!git remote | xargs -L1 git push --all"
    $ git config --global alias.pushtags "!git remote | xargs -L1 git push --tags"
  4. vladmeh created this gist Apr 18, 2022.
    17 changes: 17 additions & 0 deletions git_aliases
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    // checkout
    $ git config --global alias.co checkout
    $ git config --global alias.ch checkout

    // branch
    $ git config --global alias.br branch
    $ git config --global alias.curb "rev-parse --abbrev-ref HEAD"

    // commit
    $ git config --global alias.ci commit

    // status
    $ git config --global alias.st status

    // push
    $ git config --global alias.pushall "!git remote | xargs -L1 git push --all"
    $ git config --global alias.pushtags "!git remote | xargs -L1 git push --tags"