Git is a version control system. What’s that? Let’s say you were working on a large project with many developers. If everyone edited the project’s source code at once, there would be tons of conflicts and it would be hard to make sense of things. With version control, specifically Git, each developer makes changes to a local copy of the project, makes a commit, and pushes that change to a remote location if the project is hosted on an external server such as one of GitHub’s. Every change made under a version control system is tracked, so conflicts are greatly reduced and any you do encounter can be sorted out fairly easily. (Source)
The basic Git work flow
Work flow in this case refers to how paths are created; which is familiar to you if you visited my blog entry named “Becoming Command Line Literate“.
git initwill create an empty Git repository in the current directory or a directory you specify. If you want to work on an existing repository that lives at a remote location, use
- To make sure you have the latest version of the repository (if you cloned from a remote, upstream location), use
- After adding new files or making changes to existing ones, add your changes with
- Commit and describe your changes with
git pushto send your changes to a remote location, such as GitHub.
Super shout out the Hackers of Life.
Oh and Bonus