Git is a version control system used to track changes in computer files and to coordinate work among multiple users.
After installing Git you can initialize a repository:
$ git init
or alternatively, clone an existing repository:
$ git clone https://github.com/al1973/piecemeal.git
As an example, add three new files and then commit them to the repository:
$ git add one two three
$ git commit -m 'First commit'
You get a master branch pointed to by HEAD:
$ git branch testing
Switch to the testing branch:
$ git checkout testing
Now HEAD points to the testing branch.Do another commit:
Switch back to the master branch:
$ git checkout master
Make another change and commit:When you are ready you can merge the 2 branches together.
Use the merge command to combine the testing branch with the master branch and then delete the testing branch:
$ git merge testing
$ git branch -d testing