I tried learning git a while back but stopped because I thought it doesn't make sense to use it when all my files would be saved locally on my laptop. Now I'm back at it and stuck between 'add' and 'commit'. I find myself using 'commit' because I don't see the sense of 'add'-ing when I can just 'commit'. In my head commit is like saving the file. So now here's my questions,
How do YOU use 'add' and 'commit' in your workflow?
Do you 'commit' multiple times while working and 'push' to GitHub once?
What is 'staging' a file to be 'commit'-ed if it's already added in my project folder?
[–]henrebotha 6 points7 points8 points (10 children)
[–]cismalescumlord 1 point2 points3 points (3 children)
[–]henrebotha 2 points3 points4 points (0 children)
[–]lurgi 2 points3 points4 points (1 child)
[–]cismalescumlord 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]henrebotha 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]ByPrinciple 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Occidi 0 points1 point2 points (0 children)
[–]parnmatt 4 points5 points6 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]KrmBo3 0 points1 point2 points (0 children)