aboutsummaryrefslogtreecommitdiff
path: root/git.cheat
diff options
context:
space:
mode:
Diffstat (limited to 'git.cheat')
-rw-r--r--git.cheat3
1 files changed, 3 insertions, 0 deletions
diff --git a/git.cheat b/git.cheat
index a32b322..33f396e 100644
--- a/git.cheat
+++ b/git.cheat
@@ -12,5 +12,8 @@ git checkout <branch>
# Delete a branch
git branch -d <branch>
+# 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}'