“Embrace obstacles, they are just telling you to go back and revisit your path.”
We are also learning about Git.
Git is not the same as gitHub. Git is a Version Control System (VSC) that enables developers to save every draft of their code. If you decide you want to go back to an earlier version, everything is saved and recorded by Git. Github is a social sharing website where developers can upload or ‘push’ their code, and work on a project simultaneously without stepping on toes. Github is similar to working on a GoogleDoc – you can work on the same document remotely, and see what other people are contributing. But, unlike Google Docs, you can work offline, and you can’t delete or over write anyone else’s work. Developers use VCSs to save every piece of code written by any one team member – so nothing gets lost, and everyone is on the same page at all times.
There are three phases of Git: 1. Working Directory, 2. Staging Area, 3. Repository. When you are writing or making changes to code, you are in the working directory. You pull the code from the git repository you want to work from, and bring it into your working directory. Then before you finally ‘push’ your code back to the git repository, it goes to a place called ‘The Staging Area’. When code is ‘staged’ you can still make changes that won’t be saved. Finally, you commit your code to the git directory/repository that is then posted on your gitHub. All this is done on your console.
Here are some other resources for learning Git that I’ve found useful:
Pro Git – : http://git-scm.com/book/en/v2 – you can download the book for free as a PDF.
Git – The simple guide: http://rogerdudler.github.io/git-guide/
15 min tutorial – Try Git via Code School: https://try.github.io/levels/1/challenges/1
More of Difference between Git + Github: http://www.jahya.net/blog/?2013-05-git-vs-github
Let me know if you find these helpful, and feel free to leave more resources in the comments section!
You know what else was exciting this week?? I am on the Leaderboard for Code Academy Labs!
Choose to conquer life.
< C >