4 ms·
There is no substitute for understanding what's going on, especially using a power tool like Git. It's a cute website, and useful, I really like it. This sente
by atsaloli 10y ago
There is no substitute for understanding what's going on, especially using a power tool like Git.
It's a cute website, and useful, I really like it. This sentence,
Bizarrely, git won't do a dif of files that have
been add-ed to your staging area without this flag.
File under ¯\_(ツ)_/¯"
just screams to me (a professional Git trainer), "I don't understand the Git staging area! I don't know my Git fundamentals! Train me!"
- Kratisto 10y agoAny resources you recommend for learning git in more detail?
- atsaloli 10y ago1. Our "Git Fundamentals: Basic Concepts and Definitions" webinar, http://www.verticalsysadmin.com/git/ http://www.verticalsysadmin.com/git/ (you have to register) lays the groundwork you need to start studying Git. If you have a team that needs Git training, email me and we can deliver a instance of this webinar (complete with Q&A session) free of charge (as an introductory service). 2. For someone just starting out, I also recommend "Learn Enough Git to be Dangerous", https://www.learnenough.com/git-tutorial https://www.learnenough.com/git-tutorial (HTML version available for free), from @mhartl, author of the popular RailsTutorial.org 3. The "Pro Git" book is great. https://git-scm.com/book/en/v2 https://git-scm.com/book/en/v2 A comprehensive resource.
- runeb 10y agoFor people wondering about this: Add --cached or --staged (synonyms) to scope to the staging area.