Quantcast
Channel: User David Neiss - Stack Overflow
Browsing all 42 articles
Browse latest View live

Comment by David Neiss on Remove Historic Git Commit so It Does Not Appear in...

The reflogs also point to commits, so that might have prevented gc from cleaning it up as well.

View Article



Comment by David Neiss on A file is no longer in HEAD revision but can't...

As yet another approach, you could harness git bisect with the <cmd> option to find out where a file got added/removed/changed.

View Article

Comment by David Neiss on Git Commands at a Glance

Thanks. Probably best to post as a question, but stackoverflow.com/questions/2596805/… might be your answer, but haven't tried it and Im only using default OSX 2.7.4.

View Article

Comment by David Neiss on How to get timestamp-neutral git hash from a given...

I know im not supposed to do this, but +t @hobbs

View Article

Comment by David Neiss on If I tag HEAD on a branch and delete the branch,...

I second Oliver's comment. So deleting the branch wont delete the commits, so long as the commits are reachable (so the tags, and even transient things like reflogs will still point to the commits, so...

View Article


Comment by David Neiss on Why did Git create a merge commit with no file...

There is an addition benefit to rebasing over merging that often isn't mentioned, and that is that bisecting works out better. If you merge, then bisect will walk both merged branches, which is not...

View Article

Comment by David Neiss on Merging local-only branches with a remote branch

If S then is the "isolate this code in a third local-only branch" then its commits will get pushed along with br1 and br2, so although the ref name "shared" won't, the commits from M..S will.

View Article

Comment by David Neiss on Confusion about Array and Array

Ok, thanks Charles (and others). That clears it up. I can do the downcast of o1[] to an Int and then use its value and assign it back to o1[] to update it.

View Article


Comment by David Neiss on nil value handling in Swift

Read something like stackoverflow.com/questions/24003642/…

View Article


Comment by David Neiss on Trying to avoid finding nil unwrapping optional values

I'm not sure why this got down voted. Seems like its the correct solution. Operator ?? is the same as saying "numberTextField.text != nil ? numberTextField.text! : 0"

View Article

Comment by David Neiss on Working with datatypes in swift

Where is the question? If you are using Swift4, JSON parsing has been greatly simplified. For example, read benscheirman.com/2017/06/…

View Article

Comment by David Neiss on Swift upcasting with "as", whats going on?

Ok, thanks matt (and Ewan). Yes, that 3rd case (the array) is what was throwing me off, so thanks for the edit to clear that up.

View Article

Comment by David Neiss on What could slow down a iOS App over time besides...

Alternately, is there something else in the system that is sucking more CPU over time, thereby depriving your App of run time or contending for some shared resource? Per the other comments, you are...

View Article


Answer by David Neiss for Git - Undo all the changes changes

If you haven't made any commits, another option might be to just "git stash" your changes to save them away, just in case you want to get them back again later (git stash apply or pop).Read more at...

View Article

Answer by David Neiss for How to git pull rebase using GitPython library?

Have you tried g.pull("--rebase")

View Article


Answer by David Neiss for Can I change which branch a Git branch stems from?

Have you tried to rebase your item-0012 onto develop? From rebase docs: Here is how you would transplant a topic branch based on one branch to another, to pretend that you forked the topic branch from...

View Article

Answer by David Neiss for How do you know which branch that a newly created...

Git branch comes off your current branch (actually HEAD), by default.If you want to specify where it branches from, specify the startpointgit branch [--set-upstream | --track | --no-track] [-l] [-f]...

View Article


Answer by David Neiss for Why after cloning a single branch in git, does the...

If you wanted to restrict your clone to one branch:--[no-]single-branch Clone only the history leading to the tip of a single branch, either specified by the --branch option or the primary branch...

View Article

Answer by David Neiss for How to make the keep mine strategy with git?

If the file is saved in the repo and you have local changes and then you checkout another commit, it wont overwrite your local changes, so it should persist (provided you haven't specified -f to the...

View Article

Answer by David Neiss for Block access to old git repos after migration

Look at git server side hooks, https://git-scm.com/book/en/v2/Customizing-Git-Git-HooksFor an example, https://git-scm.com/book/en/v2/Customizing-Git-An-Example-Git-Enforced-PolicyTo totally block...

View Article
Browsing all 42 articles
Browse latest View live




Latest Images