From 6ebd2799984879e3520d1421cff4e8c0792c4758 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 31 Dec 2023 12:47:22 +0800 Subject: Update scripts --- git.cheat | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git.cheat') diff --git a/git.cheat b/git.cheat index a32b322..33f396e 100644 --- a/git.cheat +++ b/git.cheat @@ -12,5 +12,8 @@ git checkout # Delete a branch git branch -d +# Get the remote url of origin +git remote get-url origin + $ commit_id: git log --pretty=reference --- --column 1 --delimiter '\s' $ branch: git branch | awk '{print $NF}' -- cgit v1.2.3