efyu_lemonardo
May I have a cookie?
Pixar nearly deleted Toy Story 2. They were saved only because a co-worker on maternity leave had a backup at home.
http://mentalfloss.com/uk/entertainment/27204/how-one-line-of-text-nearly-killed-toy-story-2
wow!
Pixar nearly deleted Toy Story 2. They were saved only because a co-worker on maternity leave had a backup at home.
http://mentalfloss.com/uk/entertainment/27204/how-one-line-of-text-nearly-killed-toy-story-2
It's a software project that had a few large binary files. I mean, it was too late to think about making submodules or whatever because I had already wiped it.
Speaking of GIT. Is there anything usable and reliant for versioning all types of documents ? (Not just code)
I had a few projects where my team mates were incapable of using the shared folder correctly. The number of regressions we had was something else.
on the topic of source control systems, git can be a bit of a pain. however, a lot of the pain comes from being a distributed version control system. past the initial check-in , it's much easier to recover a source repo without losing history as each copy is canonical. merging responsibilities being a distributed responsibility is probably the biggest pain for most people. in open source projects, it can be rectified by feature branches and pull request which puts the responsibility of verification and merging to the project creator. in a company setting, it's a case of assigning workload such that it is incredibly unlikely that two people would be working on the same files.
Speaking of GIT. Is there anything usable and reliant for versioning all types of documents ? (Not just code)
I had a few projects where my team mates were incapable of using the shared folder correctly. The number of regressions we had was something else.
force push (another good way to delete everything).
I don't get the git hate. Never had any issues with it, and I don't consider it hard --and I've bisected, rebased, squashed, merged with different strategies, cherry-picked and pushed --force a fair bit. It has safeguards literally damn everywhere.
I get the point that people would rather not read 10000000 man pages and command outputs and prefer guis to that to get the job done asap, but I don't think it's really bad. Just read everything the command spits at you and read many guides and you're golden.
Tldr; #usegit, no gui, and you'll grok it.
Speaking of GIT. Is there anything usable and reliant for versioning all types of documents ? (Not just code)
I had a few projects where my team mates were incapable of using the shared folder correctly. The number of regressions we had was something else.
I like using gui for basic stuff. It's way easier to see the diffs and commits and being able to switch branch without having to remember and type the entire name is a godsend. I only really use CLI for interactive rebase and force pushes. And of course when you majorly mess up and need to use reflog.
Recent versions of git will display a nasty message if you try to push changes into a checked-out branch in a non-bare repository, which makes it harder to wipe out a working directory accidentally.Nope. Use features branches instead of developing on máster/dev branches.
Seriously, most of people's issues with git is that they don't work with it properly and then blame git when they screw up.
Nope. Use features branches instead of developing on máster/dev branches.
Seriously, most of people's issues with git is that they don't work with it properly and then blame git when they screw up.
we chatted anout this and tried it in red hat training class, the os will stop you and you must do something likeLast year there was a news story of a man who rm -rf deleted his entire company's files. Also his client's files. Essentially he deleted his entire company.
EDIT: Or it was fake.
(though please don't force push)
I gotta imagine this kind of accident happens a lot in other white collar jobs.
Well, the other developers need some way to get the changes in the binary files. We have to modify them frequently. At a previous job, we split them into submodules to get them to fit on Bitbucket. Didn't have the option of another version control system.Submodules? Not sure how that helps or what problem that solves? It sounds like you have some vague ideas on how to use the tool and sort of jump to not necessarily a solution that makes sense. Sort of the old adage of: You know just enough to be dangerous.
In my experience, you tend to not want to manage binary files in source control, since there's not really any sort of "delta" between changes, ie. you are usually replacing a file with another file. Anything compiled, you probably don't want to be checking in.
You don't understand. If I rebase the feature branch onto dev, I have to force push over my existing commits on the feature branch. Then, merge.Nope. Use features branches instead of developing on máster/dev branches.
Seriously, most of people's issues with git is that they don't work with it properly and then blame git when they screw up.
There are no commits. There is no repository. The guy just had the project on his computer and I did git reset --hard.Posting this without reading replies, as it may save your butt
type 'git reflog'
Find the hash for the last commit before you reset, then checkout that hash directly
git internally saves the last 50 'states' - even if you hard reset and think you lost it.
Just so you guys know, when you delete something beyond the recycle bin, it's not gone right away. It's still on your hard drive, it's just hidden away from the file browser with a flag that the data can be written over. As long as you didn't go download a huge 50gb game or something, you can find freeware on the internet to unflag it and restore it.
Just a tip if you delete a paper or something for college simple like that.
You don't understand. If I rebase the feature branch onto dev, I have to force push over my existing commits on the feature branch. Then, merge.
I want all of the changes on dev merged into my branch, but i want my commits to appear after the commits I'm pulling. So I rebase my branch onto dev, then force push, then merge my branch into dev.Wait.
Why would you rebase a feature branch onto dev?
You merge a feature branch into dev. You can force push into your feature branch but rebasing a feature into dev?? Then that's the same as just doing changes directly on the dev branch.
I'm not sure you are following a proper git workflow.
I once deleted three months of work on a web app accidentally through our Debian sever.
It was a huge school project. My teammates never knew because I was doing all the work anyway.
It's soul crushing.
Speaking of GIT. Is there anything usable and reliant for versioning all types of documents ? (Not just code)
I had a few projects where my team mates were incapable of using the shared folder correctly. The number of regressions we had was something else.
Except that SourceTree is pretty great and it shows you *exactly* what command it's running.The problem with GUIs like Sourcetree is that you don't really know what they're actually doing under the hood, or what commands are being run, so if anything goes wrong you're kind of screwed. It's kind of like writing HTML vs. using a WYSIWYG app to design a website.
They're good for non-devs who have to touch code (PMs, designers, etc) but I wouldn't really recommend it to a full-time software engineer.
git branch -D condescensionThat's not how git works.
You setup a remote server and everybody works on their own local repository.
People are only allowed to push to the remote server. Nobody but the one guy who owns the project should be allowed to modify the remote server directly. And once you push garbage to the remote server, you don't delete it, You re-push a revert on top.
No, they all use Office still. Or specialist accounting programs. Maybe coupled with some cloud storage like Dropbox.
git branch -D condescension
Every time I work on something, no matter how minor, I create a new branch.
Posting this without reading replies, as it may save your butt
type 'git reflog'
Find the hash for the last commit before you reset, then checkout that hash directly
git internally saves the last 50 'states' - even if you hard reset and think you lost it.
I want all of the changes on dev merged into my branch, but i want my commits to appear after the commits I'm pulling. So I rebase my branch onto dev, then force push, then merge my branch into dev.