This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-25
Channels
- # announcements (14)
- # aws (1)
- # babashka (23)
- # beginners (442)
- # calva (50)
- # chlorine-clover (1)
- # cider (32)
- # clojure (124)
- # clojure-europe (35)
- # clojure-france (5)
- # clojure-gamedev (5)
- # clojure-nl (2)
- # clojure-portugal (3)
- # clojure-uk (4)
- # clojurescript (56)
- # conjure (5)
- # cursive (24)
- # datalevin (1)
- # datomic (57)
- # fulcro (35)
- # helix (15)
- # holy-lambda (8)
- # introduce-yourself (1)
- # jobs (5)
- # kaocha (1)
- # lsp (99)
- # malli (10)
- # music (1)
- # off-topic (22)
- # pathom (38)
- # podcasts-discuss (10)
- # polylith (10)
- # reitit (1)
- # releases (1)
- # remote-jobs (4)
- # shadow-cljs (18)
- # spacemacs (6)
- # tools-build (22)
- # vim (66)
- # xtdb (22)
Will magit allow you to assign commit pieces (hunks, buffer, whatever) to a branch that your not currently on? I have been watching someone do this in intelliji and it seems very useful for getting small pieces of work done.
Curious. I usually stash changes and change to or create a new branch.
There is also (magit-branch-spinoff)
which will create a new branch from the unique community of the local current branch (resetting the current branch to be the same as the shared/upstream branch)
I haven't noticed a way to specify a different branch when creating a new commit. I didn't find anything in a quick search, so would be curious if there is a way. Not sure how I would do this using git commands directly
I can't even find an example of how to do a new commit to another branch with intellij. If it's an existing commit on a branch, then it can also be cherry picked (which seems very simple on magit). Otherwise, I am unsure how to avoid staging and changing to another branch (unless it's a new branch where there aren't any constraints to changing a branch)
Thanks for the reply. In intelliji i believe he was using a "change log" feature but then somehow that got tied into git. Then maybe it was cherry picking? I'll ask him to explain more next time.
I wonder if this could also be done with commit hooks, maybe a post-commit hook :woman-shrugging: