- Front-end Developer
- Open Source Advocate
the process of managing changes to source code or set of files over time.
Version control software keeps track of every modification to the code in a special kind of database.
If a mistake is made, developers can restore and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members or contributors.
CentralIzed VCS
Distributed VCS
Backups
Preserves efficiency and agility
Source Code Management
Traceability
Branching and Merging
Reverting Changes
Collaboration
By far, Git is the most widely used modern version control system in the world today is. Git is a distributed and actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel.
Unlike older centralized version control systems such as SVN and CVS, Git is distributed: every developer has the full history of their code repository locally. Git also works well on a wide range of operating systems and IDEs (Integrated Development Environments).
Git is a Free and Open Source Distributed Version Control System
git init // creates a new git repository
// create a new file (README.md), do something new!
git add README.md or git add * or git add --all
// Proposes this new change and adds it to the index
git status
// check what has been going on in git, see whats staged or not.
git commit -m "commit description"
// tell us what you did and add to HEAD
git push origin master
// push HEAD to the remote repository
git log
// see the repository history
git pull
// grabs the latest directory with updates from the remote repository
git clone <url>
// clone a remote repository to local
git checkout -b <branch name>
// creates a new branch named <branch name> and switches to it
git checkout master
// switch back to the master branch
git branch -d <branch name>
// deletes the branch named <branch name>
git push origin <branch name>
// push your branch to remote repository
git merge <branch name>
// merge <branch name> into master
git config --global user.name "Your username here"
git config --global user.email "your email here"
git config --global color.ui true
git config --global core.editor emacs
git config --list