SymLinks

Matthew Woehlke mwoehlke.floss at gmail.com
Wed Dec 9 14:37:05 GMT 2015


On 2015-12-09 03:58, Leon Pollak wrote:
> I want to keep to versions of the source - old and new.
> I switch between them switching links from foo.cpp.old to foo.cpp.new.
> I will be very thankful for alternative approaches recommended.

Is your code in a git repository? Considering that there are many and
better ways to deal with this sort of thing in git, my guess would be
"no". If not, do yourself a favor and keep your code in a git
repository. (Do this for *any* non-trivial code, even stuff you never
expect to publish. That's what I do. It's just so easy to use git that
the value of having your history - and being able to do things like
branch switches - is more than worth it.)

If yes... create 'old' and 'new' branches or (per Sven's suggestion) use
git stash. Don't forget you can always use 'git commit -a --amend -m
WIP' to quickly save your changes on one branch without needing to worry
immediately about "clean" history while you are working.

-- 
Matthew




More information about the KDevelop mailing list