summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-rw-r--r--git/git-cheatsheet.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/git/git-cheatsheet.txt b/git/git-cheatsheet.txt
index 3c73666..3ce3f5b 100644
--- a/git/git-cheatsheet.txt
+++ b/git/git-cheatsheet.txt
@@ -35,6 +35,13 @@ Setup remote repository
2. git push --tags origin master
3. # blow the local project and do clone
+Delete a branch from a remote repository
+
+ git push origin :experimental
+
+ Find a ref that matches experimental in the origin repository (e.g.
+ refs/heads/experimental), and delete it.
+
Rebasing
Local (e.g., from a feature branch to master):