Skip to content

Commit

Permalink
remove uncommonly used alias
Browse files Browse the repository at this point in the history
  • Loading branch information
PingjunChen committed Apr 29, 2024
1 parent 48889fa commit deafb99
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions docs/gitcfg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,4 @@ Git alias
.. code-block:: bash
git config --global alias.cm "commit -m"
git config --global alias.br branch
git config --global alias.co checkout
git config --global alias.cb "checkout -b"
git config --global alias.last "log -1 HEAD"
git config --global alias.br branch
13 changes: 13 additions & 0 deletions docs/gitcmd.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
git command
========

Show difference
--------

On modified file

:code:`$ git diff <file_path>`

On staged file

:code:`$ git diff --staged <file_path>`


Delete branch
--------

Expand All @@ -12,6 +24,7 @@ Delete remote branch

:code:`$ git push <remote_name> --delete <branch_name>`


Tag
--------

Expand Down

0 comments on commit deafb99

Please sign in to comment.