Git by Example
Git is an essential skill for all team members of a technology company. In order to survive, technology companies are increasingly depending on continuous delivery to give customers a better experience. Git or other methods of Version Control are necessary in order to do this.
Git is necessary for teamwork, organisation, and management of projects. It is much easier to work when all team members can immediately see code changes and can follow what others have done.
It’s difficult to go wrong with Git. You can always roll back if someone deletes code, changes the structure of your project, or sends out incomplete code. Everyone makes mistakes, but when using Git properly, no mistake is fatal.
Today we will make sure you get familiar, understand, and then master the extremely popular Version Control system called Git. This was originally used in the Linux project, so it is lightweight, but able to cope with the largest of projects.
Throughout the course we will learn:
- What is Version Control, a gentle introduction for those not familiar with it.
- Markdown: what it is and how to use it.
- The basic structure of a repository. Vital to understand how everything works on a low level.
- Using the terminal/console properly.
- Using VIM, a great text editor within the console. We will use this to write commit messages when not using a GUI.
- Configuring Git. We will get it to work on any system.
- Basic Git commands that you will use in every project you are part of: git add, git commit, git push, git pull, git fetch.
- Writing meaningful commit messages. This is vital, so that everyone looking at the project can see what’s going on.
- Branches. What are branches?
- Organising branches via the Gitflow workflow. Ensuring your project has a great and easy to work with structure.
- Merging two branches together.
- Dealing with merge conflicts. We won’t have many of these!
- Using SourceTree for Git outside an IDE.
Now you can acquire a vital and in-demand skill to boost your CV and development abilities, help your team deliver working software, and make companies love you.
Join us now, and tomorrow you could be an expert. I’ll see you inside!
What is version control?
Basics of the terminal
Basics of Git
In this video we look at adding a remote to our repository. It is a very simple process, but it needs to be done or else you won't be able to push and pull!
For Github help: https://help.github.com/articles/adding-a-remote
Branches and workflows
In this video we take a look at how to revert changes made in a branch, by either deleting commits or creating new commits that 'undo' what the previous commits did.