12 ms·
More Productive Git
- jc_sec 8y agoThere's an article like this every week or so.. I don't get it. Git isn't that hard.. You can pretty much get by 99% of use cases with like four or five commands.
- saagarjha 8y agoThose "four or five commands" do like seven seemingly unrelated things each.
- nexuist 8y ago"Everyone knows four or five git commands, but they're all different ones."
- narnianal 8y agoJust learn all ten and be done with it. You wouldn't work in a factory with professional tools without learning to use the tools either. So why not just learn this professional version control system in and out. It's not that hard either.
- wyldfire 8y ago> Git isn't that hard. It's not, but if you don't use it mostly every day, or if you decide to "Delete repository and clone again" every time there's a problem, you won't ever get to learn how to fix it. The staging area is totally unnecessary IMO. I think git would be easier if we didn't have it. The term `checkout` is multiplexed to do more things than I would've guessed.
- ChrisSD 8y agoI find the staging area useful. It especially helps when you only want to commit a change in part of a file or just generally reviewing a commit before it's a real commit. And also to double check I'm not going to be uploading any secret keys (which seems to happen to people more often than it should).
- derwiki 8y agoAlso helpful for committing changes in smaller atomic units
- CardenB 8y agoI think the staging area should be a more intermediate usage pattern, at least.
- jordigh 8y agoThe staging area is incidental. It's yet another place in which your code can be, and it confuses users. This is why Gitless has removed it. https://gitless.com/#vs https://gitless.com/#vs You don't need the staging area to select hunks into a commit. The selected hunks could go straight into a commit. Selecting hunks is a different thing than putting the selection into an extra intermediate area between working directory and commit. You don't need an extra intermediate area to review a commit. Commits are flexible and modifiable, so you can review the draft commit, modify it as necessary, and then publish it.
- tom_ 8y agoI always assumed it was there as an analogue of the state tracked by a UI such as TortoiseSVN's Commit dialog, or (though it's a lot longer since I lasted used it...) Perforce's changelists view. It's a list of files you've got checked out or modified: you tick the ones you want in the commit, right click to delete files or revert, double click to get a diff, that kind of thing. Between each deletion/reversion/diff/etc., the state of the tickboxes is retained, so you can sort of just fool about until you've got what you want. But this sort of multi-step thing is often a pain to do from the command line, I find: unless you have some way of tracking the state between commands, it's no fun working through this list of items, building up a to do list that you then have to get done at the end with one uber command. And the staging area is this way of tracking the state when it comes to putting together your commit. The gitless examples look to have many common possibilities licked, though, and perhaps that will suffice for most cases?
- cheerlessbog 8y agoI didn't know about Gitless. The other interesting thing I see about it is that switching branches also switches out any uncommitted changes. On balance I think I find that less useful.
- house9-2 8y ago> The staging area is totally unnecessary IMO. I think git would be easier if we didn't have it. Staging area / Index is one of the best features of Git for me. If I end up having a bunch of semi related changes in-progress; being able to easily group those into individual commits is great. > The term `checkout` is multiplexed to do more things than I would've guessed. Agree
- OJFord 8y ago> The staging area is totally unnecessary IMO. I think git would be easier if we didn't have it. I can't even imagine not having it, I extremely rarely commit all changes, to the point where I really might as well alias add=add -p, and now I've thought of it I probably will. > The term `checkout` is multiplexed to do more things than I would've guessed. My rule is that if I think that, I've probably got the 'wrong' mental model. Checkout gets the state of the worktree from somewhere else. In its simplest usage, from another ref and changes to it. With -b, as above, but with a new branch name. With -- files, filter for only the given files, leaving HEAD where it is because moving it would be the opposite operation - taking the inverse list of files from current location to the specified one. Etc.
- klyrs 8y ago> The staging area is totally unnecessary IMO Honestly, I think that 'stash' is the more problematic concept for me. Not that it's particularly bad, just that it's extra. Make a new branch for your awful code, check out your old head and keep going. I learned hg and then git, and IIRC stash was more comfortable for my team's established workflow. And maybe I have good reason to hate it. One of the only times I've ever broken a repo is by attempting to stash partway through a messy merge. Never did figure out if that was pebcak or a bug, or if I could gracefully recover, because I was in the middle of something. I shed a tear, nuked the repo and found a better direction to merge. Ever since that happened I've gotten much more comfortable making and deleting branches. Among other things, they're easier to clean up and have proper histories.
- narnianal 8y ago> The term `checkout` is multiplexed to do more things than I would've guessed. Do you mean `pull`? > The staging area is totally unnecessary IMO. I think git would be easier if we didn't have it. It's an interesting POV. Especially since you can easily amend and rebase -i before pushing without any consequence. Thanks for the idea. I implement a git-like for a special use case at the moment and will certainly consider this.
- Seb-C 8y agoI didn't use the staging area until I started to use git add -p. Now I use it very often to properly separate mixed changes into more logical commits. It makes the staging very convenient to use. But without this command, I agree that it is a pain to use.
- enlyth 8y agoIt's not hard but the UX is horrible.
- deleted 8y ago[deleted]
- vivekseth 8y agoYeah! I find git to be easy to understand conceptually, but the CLI is unintuitive and sometimes inconsistent. I often know exactly what I want to do, but don't know how to phrase it in a git command.
- bluGill 8y ago1 time out of 100 you get those cases where the four or five commands you have memorized are not enough. Those cases are hard.
- ggregoire 8y agoBecause a lot of people have a terrible workflow. Then they spend 1 hour on StackOverflow searching a magic solution to fix their mess. And there are also those people who inflict themselves unnecessary strict rules for whatever reason. Like those who refuse to rebase and push -f on their own branches. Or those who refuse to use a GUI but keep messing up when diffing, resolving conflicts and staging specific files/lines.
- house9-2 8y agoI really do not like `push -f` because in the past git default configuration was to push all branches; things have improved now that the default is to push to the current branch. Recently got turned onto `git push --force-with-lease` which is great. http://blog.developer.atlassian.com/force-with-lease/ http://blog.developer.atlassian.com/force-with-lease/
- lgeorget 8y agoMy thoughts exactly. Maybe it's because I've used SVM and Mercurial before but I learned Git very easily. I find the commands and options fairly intuitive once you know you're manipulating a graph of patches. But I guess this is very subjective. After all, I've never been able to master gnupg despite how long I've been using it for.
- saagarjha 8y ago> I find the commands and options fairly intuitive once you know you're manipulating a graph of patches. On the contrary, I find the "graph of patchs/Merkel tree/whatever" model pretty easy to understand, and have difficulty in using the commands to make the tree look like how I want it to.
- Mindless2112 8y agoThe plumbing is nice, but the porcelain is covered in shit.
- jordigh 8y agoThe proliferation of articles like this is a very very good indication, that, yes, git is that hard, especially if you have to collaborate with other people. Everyone has a different idea of what git does, what things are called, and different interpretations of the vast git vocabulary. What is a rebase? What is a branch? What is a reset? People have different mental models for all of these things. Git would be easier if it weren't for all of the git users you have to work with. If you're a git solipsist, you develop your own mental model that works for you and you never have to care what anyone else does when they are using git.
- ozim 8y agoThere is loads of videos on yt on how to make pushups.
- chucksmash 8y agoI got a lot of mileage out of git with "do work on my own individual branch, never use `--force anything` even if a blog post on the internet says to, and don't rewrite history." Reading just enough of the git-scm book to get a basic mental model of staging, branches, and pushing/pulling from a single remote (aka the things new people actually probably trying to do with git) can serve you well enough. I've since worked on teams that expected WIP commits to be squashed, used multiple remote repos, etc, but the above should be all the git most of the people complaining about git actually need. git remote add origin git@yabbadabbadoo:org/team git checkout -b feat/my-work-branch # do work git add -p . git reset HEAD accidental-file.txt git commit -m "Add sweet feature" git push -u origin feat/my-work-branch git pull origin feat/my-work-branch I feel like there are two big reasons git gets the rap it does separate from any actual interface issues: 1. People tend to mess up with a tool more often when they are still getting acquainted with it. When things get hairy, people tend to just try random fixes so they can get back to work which makes the problem hairier still. 2. git might be one of the first tools someone uses that expects end users to map their mental model to it rather than trying to fit their pre-existing mental model.
- brobinson 8y agoSpecifying the remote and branch name again when doing a `git pull` is not necessary after you've set it as the upstream branch (which the `-u` option in `git push` did in your example).
- CJefferson 8y agogit is super hard, because it has too many sharp edges. Quick quiz: What does 'git checkout a/b' do? I've seen users end up with 3 different meanings.
- allenu 8y agoI agree it's not hard once you get it, but the main thing is people don't get it. It's unintuitive. That's not to say the model is wrong (I think it's correct), just that there's a huge gap between what people think git is doing and what it's actually doing and so they end up fighting it to do what they think it should do. I had a coworker explain that he did a merge and something unexpected happened to his branch. I had to explain to him that what happened was totally expected and that his understanding was what was wrong.
- mohitsingh 8y agoAgreed. Specially, flags of these commands are actual magic when it comes to productivity, at least for me. For example, not all flags of git commit command are used frequently but they perform a lot of different operations and can be easily combined to save the day. https://git-scm.com/docs/git-commit#_options https://git-scm.com/docs/git-commit#_options
- ayushgp 8y agoOne of the most common issue I faced when I started learning git was diverging local and remote branches, franatically searching how to fix it and giving up 2 hours later.
- olvy0 8y agoYes, that has been my experience as well. Starting a new repo that has a remote tracking branch has been a source of constant frustration for me. I routinely mess up some incantation and then have no idea how to fix it. The mental overload is high enough with local branches, but I still don't quite follow what it means to have a tracking branch, it seems to complicate the nice and simple mental picture I have of the local repo as a DAG.
- js2 8y agoWhen you fetch from a remote repo, the state of the branches in that repo has to be recorded somewhere locally in your repo. That’s what remote tracking branches are. So if the remote called origin has a branch called master, and you fetch, git downloads the commits you don’t have and then updates .git/refs/remotes/origin/master to the commit ID of whatever master is on origin. That’s all it is. Basically you have a DAG just like you think. But git needs some way to label some of the nodes in that DAG. It calls those labels “references” or refs, it records them under .git/refs/, and there’s basically just three kinds: local branches (refs/heads/<branch_name>), tags (refs/tags/<tag_name>) and remote tracking branches (refs/remotes/<remote_name>/<branch_name>). There’s also the reflog which is a change log of the local branch refs, and a special log for HEAD which keeps track as you switch which branch is currently checked out. Note: if you start poking around under .git (and you should in a toy repo!), you might not find exactly these files. For performance reasons, git sometimes combines the refs into a single file called packed-refs.
- atq2119 8y agoA concrete example would be interesting. The only thing you really need to internalize is that all git operations are entirely local on your machine, except clone/fetch/pull/push. (Another useful thing to internalize is that git pull is really just git fetch followed by git merge. git fetch is the part that involves network activity, while git merge is entirely local on your machine. I can't remember the last time I've used git pull, actually...) So when you're doing git log origin/master, you're not looking at the current state of the master branch on a remote machine. Instead, you're looking at what the state was the last time you did a fetch/pull/push. This is extremely useful for being able to work remotely.
- kyberias 8y agoDoesn't look right if an article starts by introducing git reset and git reset --hard.
- derwiki 8y agoWhat makes you say that? I use that command nearly every day.
- jordigh 8y agoI think this exchange between you two perfectly exemplifies why git is hard: everyone has a different interpretation of it.
- kyberias 8y agoThere is something wrong with your workflow if you have to use git reset --hard nearly every day.
- jedberg 8y agoWhy in the world would you say that? I check out a branch, I write some code, it doesn't do what I want, I do a git reset and try again. If you aren't using git reset that means you're either a genius coder who doesn't make mistakes, or you are a coder who would rather keep going down a bad path instead of just starting fresh. Some people find it easier to just start fresh.
- ww520 8y agoSince started using Magit in Emacs, I found myself using the command line Git less and less. I can perform most Git commands with couple key strokes. Having a UI with integrated workflow with Git is pretty nice.
- rbavocadotree 8y agoDespite using git for nearly a decade, I never became "good" at it until I started using Magit. Emacs is worth learning for Magit and org-mode alone.
- __MatrixMan__ 8y agoVim zealot here. Been tempted by org mode. This comment pushed me over the edge--I'm gonna give Emacs a try. Winces and waits for the world to explode
- zaiste 8y agoLong time Vim user here as well. I started my transition to Emacs few years ago. Along the way I discovered Emacs Doom distribution, which is specifically created for Vim users (and similar to Spacemacs, but lighter), and I never looked back.
- XCSme 8y agoOne mistake that I saw several times is cherry picking or merging another branch into the current one, then realizing later that you didn't need those changes yet, and you revert the merge commit. Later, if you actually want to merge the other branch into the current one you will get in trouble as it's already "up to date", as the current branch is ahead. Even worse, if you instead merge the current branch into the other one, all your changes done in the other branch will be reverted. The takeaway: don't revert something if you don't actually want to revert that code. I am pretty bad with git, by I assume the correct way to reverse the initial merging would be to remove that merge commit entirely, using git reset.
- CardenB 8y agoI think both answers are correct, and the best thing is to understand where each approach will bite you. I prefer to remove the commit because I am proponent of rebasing over merging. Though the issue is that removing merged can be tricky, because you have the merge commit as well as all the commits associated with the merge. It’s easier for me to manage by avoiding merges entirely, and just restructuring git history via rebases often.
- mathieuh 8y agoYou can just revert the revert commit.
- XCSme 8y agoBiggest issue is the first part, when it's "already up to date", so then when you merge the feature into the current branch and think it's merged, it will actually be missing, so you might forget to revert the revert, or not work anymore because of new commits/conflicts.
- mathieuh 8y agoI honestly can't say I have ever had this problem. I also don't understand how you could forget to revert the revert? And why would new commits matter? Sure you may have conflicts, but you would have had them anyway if you hadn't reverted. We've had to revert commits on our master branch after several commits have been added on top before, and we've never had an issue just checking out a branch off master and reverting the revert commit. I feel like there are workflow things you could be doing to avoid whatever problems you're encountering possibly?
- crimsonalucard 8y agoAny interface that forces you to manually visualize a complex internal structure rather than show you the internal structure itself is a design smell. Any interface that forces me to manipulate such a complex structure with obscure textual commands rather than a drag and drop interface is a design smell. The git graph structure is not amenable to command line. When I do "git log" it lies to me. I see a linked list for what is essentially a graph.
- saagarjha 8y agoThe command line shows you part of the graph: you choose which part it shows you based on what options you pass it.
- crimsonalucard 8y agoWithout options it returns something that is implied to be a linked list. Try it. Anything merged into the current branch is shown as part of a single long list. It implies sequentialism in places that are parallel.
- gwright 8y agoYou are seeing a path through the graph. If you want the entire graph: git log --all --graph --oneline
- crimsonalucard 8y agoRight, this solves all my problems tack on hundreds of optional tags to every command that I have memorize and suddenly the user interface is perfection. FYI without those options it is showing me part of the graph and implying that it is a linked list.
- jph 8y agoMore productive Git is faster & easier with good git aliases. These help novices and experts alike. I maintain a large free list of Git aliases, and community feedback is always welcome. https://github.com/gitalias https://github.com/gitalias
- jordigh 8y agoHere's another one: https://gitless.com/ https://gitless.com/
- tunesmith 8y agoI found one article, only one, that did more than anything to help me understand git. Can't find it anymore. :-( But it had to do with reflog and how any command could be undone since nothing was truly destructive, and how reflog actually had the edges in the graph and you just needed to know how to repoint them to the right nodes. Or something. This is probably one of my least helpful HN comments. edit: It might have been this one: https://hackernoon.com/https-medium-com-zspajich-understanding-git-data-model-95eb16cc99f5 https://hackernoon.com/https-medium-com-zspajich-understandi...
- anamexis 8y agoI'm guessing that was this article which was on HN 2 weeks ago: https://news.ycombinator.com/item?id=19877811 https://news.ycombinator.com/item?id=19877811
- butterNaN 8y agoIt isn't entirely useless, there's a chance that someone who still has that article can link it here : )
- AlexCoventry 8y ago> any command could be undone since nothing was truly destructive As the article mentions, git reset --hard will blow away uncommitted changes in your working tree.
- ofrzeta 8y agoI am also taking a guess: https://codewords.recurse.com/issues/two/git-from-the-inside-out https://codewords.recurse.com/issues/two/git-from-the-inside...
- no_gravity 8y agoPut this in your bashrc: source /usr/share/bash-completion/completions/git And you can type "git br<tab>" to write "git branch", "git checkout fun<tab>" to write "git checkout funky-feature", "git log --na<tab>" to write "git log --name-only" etc. Pretty much every time you press <tab> somewhere while writing a git command, it does the right type of completion. And hitting <tab> multiple times lets you toggle through the options. So you learn git along the way. This was one of my most enjoyable productivity jumps when it comes to using git.
- dearrifling 8y agoOn debian this is the default behavior.
- panpanna 8y agoSame in Ubuntu. Bash completion on Ubuntu/debian is out of this world. I can do things like lxc exec <TAB> and get a list of currently running containers.
- paulddraper 8y agogit has a whole bash library for autocompletion stuff (like complete ref, complete tree). You can even use it when writing your own commands.
- johnhenry 8y agoFun fact: Ubuntu is a derivative of Debian!
- panpanna 8y agoYeah, but they also have added some stuff that is not part of standard Debian.
- BinaryIdiot 8y agoI don't know why I never thought to look for more completions for git. This is a great tip!
- draw_down 8y agoIt really is a testament to git’s disaster of a UI that so many of these articles exist. Still, I would take it over any other VCS I’ve used, and I’ve used plenty. The UI is doubly unfortunate because once you understand git’s concepts, it’s almost miraculous how well it does its job. It just unnecessarily complicates the matter of telling it what job to do.
- chiefalchemist 8y agoThere's one of these articles at least once per week that makes it to top of HN. When are we collective going to come to the realization that Git is a corded drill in a battery-powered drill world? Don't get me wrong, version control is necessary. Obviously. But if a plumber, a word-worker or some other artisan used a tool that required a weekly "It's okay, you'll catch on eventually" article, we would have never got out of the Dark Ages. It's time for an intervention. It's time to take seriously the friction and frustrations it creates. Yes, it has redeeming qualities. But it's time to stop looking past those and do something about them (other than another article such as this one).
- misthop 8y agoThese articles aren't for the Artisan - they are for, in your metaphor, the apprentice and journeyman. You should do a lot of learning on using a table saw before you touch one. Using git wrong won't kill you, using a table saw wrong will.
- F-0X 8y agoOn the other hand, I don't know who these articles are really for. I have _never_ met a developer who struggles with git. Not many claim to understand it deeply, but all can rebase, cherry-pick, use the reflog, etc. and almost never do they run into issues. It mystifies me. Git isn't hard, nor complicated. "Checkout" has a few too many meanings, and thats the singular gripe I have with it.
- Stratoscope 8y agoIf you really want more productive Git, stop playing the Git Adventure Game! When you poke at your repo on the command line, you never get to see it as a unified whole. All you can do is try a command, see what it prints out, and try to make a mental model of what this all means. A good Git GUI will show you the state of your repo and unify all of the scattered concepts of the command line like the index, the reflog, and stashes. SmartGit is my favorite. I've also heard good things about Tower, although it's only available on Mac and Windows, not Linux. (SmartGit supports all three.) A couple of examples from the article: > The process of a cherry-pick is brief. First, we identify the SHA for the commit or commits you want to pick, using git log or the like. Next, we check out the branch we want to apply the commit(s) to. We then pick the commits. git cherry-pick d8119f49cd4fd6b0366c5ca3af205f9c25af89ba In SmartGit, you see the commit you want to pick in the log, right click it, and select Cherry-Pick. > Another common issue is committing and then discovering you missed something in that commit. Sure, you could make an edit and add another commit, but sometimes you want to maintain all related changes in a single commit. In this case, you can use the git commit --amend command to fix it up. > Let’s say you’ve edited useful_func.clj and then committed it. git add useful_func.clj git commit -m "Added even more useful function" > But you forgot to commit your code and document your new function. Instead of editing and committing again, you can amend. Make the required changes to the useful_func.clj file, then add it again: git add useful_func.clj > But instead of running a normal commit, run an amendment. git commit --amend --no-edit > This will amend your last commit with your new changes and commit it. The --no-edit flag tells Git not to launch the editor and skip amending the commit log message. If you want to update the commit log message too, you can omit this flag. In SmartGit, you use the same Commit dialog as a normal commit. It's on the menu, or Ctrl+K (Command+K on Mac) will take you right there. The Commit dialog has an "Amend last commit" checkbox which is normally unchecked. Simply check that box and it will do an amended commit. You can either keep the previous commit message that is displayed in the dialog, or edit it right there. A couple of other topics the article doesn't touch on... What about the index? In SmartGit, you can either use the index or ignore it as you see fit. I rarely use it myself. The Commit dialog just does the right thing when I ignore the index, committing my working tree changes directly. And if I do want to use the index, it's easy to get to from the same dialogs. One of my favorite features in SmartGit is how it handles the reflog. Instead of printing out a list of hashes and poking through them to find the one you need, simply click the Recyclable Commits box in the log view. Now every commit in the reflog shows up as part of the normal commit log tree. You can work with these commits just like any other. It does the same thing with stashes. Click the Stashes checkbox and they show up in the commit log too. (I wonder how many Git users realize that a stash is simply another commit by a different name?) Maybe you're not sure exactly what was changed between two fairly distant commits? Click one of them, and then Ctrl+click the other. Now the Files panel shows you exactly which files were changed between these two commits and the exact differences. I could go on for a while, but what I really wonder is why so many developers are reluctant to even try a Git GUI like SmartGit. It is so much more powerful and productive than the command line adventure game.
- misthop 8y agoFor many of us git should be a multiplier - spend time doing your code and experiments in a safe way, because git, used well, will protect you. As such, learn the tool! Pro Git[0] is great, and you learn the how, but more importantly the why of the tool, so that you can make git a multiplier. [0]https://git-scm.com/book/en/v2 https://git-scm.com/book/en/v2
- francis-io 8y agoI often use this to get to the root of a git repo. Put this in your ~/.bashrc alias r='cd $(git rev-parse --show-toplevel)'
- KwanEsq 8y agoThe most productive I've ever been with git is when I've done `hg --config extensions.hggit= clone git.example.org/repo.git` and got on with my work.
- dmh2000 8y agothanks for telling me about 'git amend'. I frequently screw up and fail to add the files I want or as soon as I commit I remember I needed to change something else. So my projects all have strings of commits that are a few seconds apart.
- narnianal 8y ago`git amend` and `git rebase -i` are two core features of git. It's okay if especially interactive rebasing takes some time to get used to. But it should certainly be part of every users standard tool set.
- pedro84 8y ago> We then tell git bisect to run the command lein test on each commit until the command exits with a 0 exit code, indicating that we’ve found the first broken commit. According to git-bisect(1), "the script should exit with code 0 if the current source code is good, and exit with a code between 1 and 127 (inclusive), except 125, if the current source code is bad."
- wincent 8y agoThe very first factual claim in the article is wrong: "The most basic usage is: git reset useful_func.clj This will replace the useful_func.clj in the current working directory with the last committed version in the repository HEAD." Not a good start. What it actually does is reset the path "useful_func.clj" in the index (AKA staging area) to the HEAD state. It doesn't touch the working directory.
- forty 8y agoThanks for confirming, they made me doubt for a second.
- tbrock 8y agoOne would idiomatically use “git checkout <path-to-file>” for the functionality described by the author: “get some file back to the latest version committed in HEAD”. Stopped reading after I saw this.
- booleandilemma 8y agoSame. Came here looking for a comment that would point this out and I was not disappointed. Trying to learn something from a bad article is worse than reading no article at all.
- ecma 8y agoIt's not clear to me if the author actually understands how staging works and how that affects the commands they suggest. They claim that stashing takes staged changes and then note that after stashing the working tree will be clean. That suggests the post is being dumbed down or the author is misunderstanding things. Git guidance should almost always start with a brief introduction to the concepts you believe the audience doesn't know or fully understand. To begin with reset and not properly explain the index will just end up being confusing, especially with brief references to hard, soft and mixed resets later on!
- narnianal 8y agoI see this so often with power user tools. All power user tools are tools that you can only use reasonably well with some basic understanding. They are made not to be understood in the easiest fashion but to handle all complexities of a problemset as efficiently as possible. Therefore it sometimes seems harder to use from the outside, but actually the hardness comes from the problem it solves, not the tool. So yeah, if you really want to use git well, learn its internals. It takes some time but actually not even hard. After reading the Git Book once I was even able to implement my own git (of course without performance considerations).
- nagyf 8y ago> A common workflow is: > Mess up your Git repository. > Google some error messages and read cryptic > > posts. > Try a few fixes. > Tear hair out. > Delete repository and clone again. You don’t have to be a genius to use git, I’ve never experienced anything like this, even though I’ve worked in 15-20 member teams with lots of conflict and all that. Read the docs and use it as it is suggested. I don’t think it is that hard... I feel like this scenario is just not from real life
- cs02rm0 8y agoIt totally is, but probably not for people working with as many as 15-20 others who can help out!
- objektif 8y agoI am not the best programmer around but i gotta sat Git is a disaster to work with. I find it incredible complicated for such a simple task.
- sandov 8y agoWhy does the article link to the version 1 of the Pro git book instead of the v2? https://git-scm.com/book/en/v2/ https://git-scm.com/book/en/v2/
- wyclif 8y agoMy pro tip for 'more productive Git': Read the Git documentation thoroughly. Most people don't, and then wonder why they have no idea what's going on when a project they're put on uses Git for version control.
- blknmild 8y agoI got shamed a few times in a new role awhile back in part [imo] because it was assumed I was 1000% git-fluent. The way I’ve started to view svc ticks is similar to how I view grammar knotsies. In the end the idea is to communicate, not to make other people feel like dunces.