Git tutorialλ︎
This tutorial will give you a practical guide to using the Git version control tool to managing changes to source code and configuration files in projects. The tutorial also covers collaborating on projects using Github public repositories. You can either read an overview of Git
Setting up Git & Githubλ︎
Creating Git Projectsλ︎
Local Git Workflowλ︎
- Checking the status - what has changed -- git status, git diff
- Staging changes - basic add, git add -p, unstaging untracked files, unstaging tracked files, git diff --cached
- Committing a new version
- Git log
- Chapter 7: The local git workflow
Branching & Merging - why do thisλ︎
- try out code and modifications to design, different algorithms
-
easily discard changes that are not needed - or leave them in a branch so they are not affecting / poluting the main codebase
- merging changes
Collaborating with other developers using Git and Githubλ︎
- Chapter 10: Collaborating with Github
- Practices to avoid when using shared repos like Github
- rebasing, forgetting to push changes (especially for sub modules)
Troubleshooting]λ︎
- what to do if you loose your head
- if you really have to change a commit
- unstage changes
Resourcesλ︎
- Git submodules
Git local workflow visualisedλ︎
You can quickly get versioning your code with Git, all on your own computer. You do not need to set up a server.
Git and Github workflow visualisedλ︎
To give you a big picture view of how you use Git and Github, here is a visualisation of the workflow for both. The details of this workflow are ocvered in the workshop from Chapter 10: Collaborating with Github onwards.
Referenceλ︎
- Git essential commands for the most common commands for using Git
- Git Visual cheat sheet
- Git Reference
- Learning Version Control wth Git - git-tower.com
- StarLogs.net demo from my blog