This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-07
Channels
- # aleph (4)
- # announcements (7)
- # arachne (1)
- # beginners (138)
- # calva (5)
- # cider (1)
- # clara (14)
- # clj-kondo (1)
- # cljsrn (2)
- # clojars (4)
- # clojure (247)
- # clojure-dev (33)
- # clojure-europe (3)
- # clojure-italy (71)
- # clojure-losangeles (6)
- # clojure-romania (6)
- # clojure-spain (11)
- # clojure-uk (17)
- # clojurescript (95)
- # core-async (2)
- # cursive (19)
- # datomic (7)
- # duct (27)
- # figwheel (1)
- # graalvm (22)
- # juxt (7)
- # kaocha (8)
- # leiningen (1)
- # luminus (7)
- # lumo (4)
- # off-topic (38)
- # reagent (4)
- # reitit (11)
- # shadow-cljs (30)
- # spacemacs (42)
- # tools-deps (103)
- # xtdb (5)
How can we move files from untracked to unstaged in magit
?
s
move files from untracked to staged.
I don't believe git has a notion of that. If a file is untracked what would it mean to have it unstaged?
Right. I am using magit. Basically I want to move files to another branch. but branch is not changing because files are not commited.
@ahmed1hsn you probably want to try stashing
stage your untracked changes and then stash, switch to another branch, then apply/pop stash
stage them first
@theeternalpulse untracked files are not being stashed
at the end of the day, if you can guarantee you added unique files that aren't on any other branch, you can switch
right staged ones are stashed.
I generally stash/apply since if I make a mistake and delete I still have them
or I do snapshots to just have some code lying around jic
How snapshots differ from stashing?
snapshot creates a stash without checking out HEAD
so it just takes a picture of your working directory
and puts it in the stash area
yeah, It's really a piece of mind feature, ideally I'd just be committing/pushing routinely
should be z Z
I just looked this up too @ahmed1hsn
z w (magit-stash-worktree)
Create a stash of unstaged changes in the working tree. Untracked files are included according to infix arguments. One prefix argument is equivalent to --include-untracked while two prefix arguments are equivalent to --all.
what do without checking out HEAD
mean?
basically without wiping out your work-tree changes
so snapshot does a stash, but doesn't get rid of the files
that’s a little too minimal 😛 I’m looking for a simple static template, with just a list of posts and a nice layout for each post
I use Octopress and GitHub pages for http://corfield.org (and some other sites).
this Hugo theme look promising, I’ll give it a shot tomorrow: https://github.com/nodejh/hugo-theme-cactus-plus, thanks @deleted-user!