Welcome to the Treehouse Community
Looking to learn something new?
How does Github detect the copyright edit that Dave makes on his text editor?
I might've missed something here - but when Dave switches to his text editor at the 33 second mark, and adds the copyright to his code, how does Github automatically detect this and record the changes on GitHub Desktop?
Thanks in advance -
Kevin Korte28,109 Points
That's what git does, it's constantly watching for changes. It knows the status of all of the files as of the last commit, and as it sees changes happen it real time, it will update the desktop app. Running
git status in the console will show you the same results as they happen.
I haven't used the GitHub desktop software in a while, but if I remember right, I think you can see changes if you have the GitHub desktop program open and are inside this program so not from your Safari browser. You will need to push up your code changes if you want them added to your online GitHub repo. Otherwise, they will only be saved on your computer.
Kevin mentions the console which is how I access GitHub. You need to be inside Terminal for macs, not sure what it is for PC. It's the command prompt area where you use UNIX commands to navigate around to your projects. If you are only using GitHub via the desktop friendly version, you won't see this. There is a whole other way to use git where you just type commands directly and push/pull code to/from GitHub via the console.