- cross-posted to:
- hackernews@derp.foo
- cross-posted to:
- hackernews@derp.foo
This is a pretty good overview… The only concern I have is that there should be a warning about doing
git add *
. I’ve seen students do this and end up adding a lot of unnecessary things and bloating their repo.That’s why there should always be a gitignore file with everything that shouldn’t get into the repo. At least in the case of open source projects, you can ask the contributor to clean up the commits. But one lazy developer is enough to cause headache for everyone in academic projects and work projects.
An equally important skill is the ability to create clean commit histories using interactive rebases or tools like stgit. Everyone complains about this being too complicated for regular developers. There is some truth to this too. However, the regular commit and forget workflow is an excuse for many lazy developers to slack off on the quality of commits.
Back when I was learning Git, I found the official Git book to be easy to get into and surprisingly beginner friendly too. Chapters 1 to 3 are enough for a beginner.
Thanks for this and also i found this intro to git very useful for beginner and whole playlist is good by MIT profs. Version Control (git) (2020)
deleted by creator
Love this thank you