![]() Personally I don't use stash a lot because I'm not afraid of committing anything to my working branch. Not always to be able to blame the author, but just understanding how long a line has been unchanged. Also when you get bug reports form the field, to understand how long certain bugs existed. Sometimes when I need to split or unite development branches that need major reorganization I use it.īlame I need soon when I try to understand others code. I guess that could be very different for someone required to support long product life cycles. We don't have many, so I don't need it very often. So I call git log many times every day, I would not know how to do it without.Ĭherry-pick probably depends how may maintenance branches you maintain. > I think of log, cherry-pick, stash & blame "quarterly use" commandsĪt work we do care that our git history makes sense, is free of random nonsense, but contains only self-contained commits with reasonable documentation. Will that be consistent between developers? If a developer leaves or is unavailable, where would you find them? It doesn't sound as easy or clean, and you've got to put those patch files somewhere. People did this before git stash and still do. Well, now you're just recreating git stash functionality, but sure, you could do that. Manually backup only the diff/patch files of changes. Compared to git stash though, it's likely less efficient, because whole files are being copied instead of just the changes.Ħ. This can be messy, but with tools to make it easier, it might be "ok". ![]() ![]() Manually copy changed files to another area outside of the repo to ensure it doesn't get stomped accidentally. Be careful you could lose something important.ĥ. I still would recommend having a backup of anything really important in the repo at times, if you're not feeling confident or are worried about losing anything.Įvery time you switch priorities, you could throw away all of the work you had locally. Using multiple copies of the repo may also increase the chance of things going wrong or history being lost. Showing the stashes may be more efficient than searching through different versions of the files in copies of the repo or having to recursively diff repo copies. It's likely going to be less efficient to have multiple copies of the repo from a storage standpoint. There are exceptions, but as a general rule, be more careful with such commits if the personal investment and sense of ownership is not strong in that code. In my experience, it is was truly unfinished, the quality may end up being somewhere between a point on a line anywhere below the initial committer's typically code quality and anywhere below the fixer's code quality. Then some other developer tries to build/test it, it works, they smooth some rough edges and commit it. ![]() This always seems to happen when a developer leaves for a holiday/vacation or leaves permanently. If you do this, you might name the branch with something standard indicating it's unfinished. The best analogy of this is like leaving unfinished crap all over the place that might look finished to some. Let's move on because that isn't always going to be the case. This is the reliable and clean process of development that everyone would love to have as a base, and then to do whatever they feel with it and it always stay like this with hard work and dedication. If needed perhaps you can combine things and rebase later into larger commits. If you can though and have time, do this. Not every environment and process allows this and not every change is small. ![]() Commit frequently, one tested piece of code at a time. I think there red flags if they are needing to jump into stash, cherry, etc on a daily basis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |