background preloader

Git - petit guide - no deep shit!

Git - petit guide - no deep shit!

Related:  MOOC GitHubGitSource ControlTUTORIELS, COURS, FORMATION etcgit

A successful Git branching model » In this post I present the development model that I’ve introduced for some of my projects (both at work and private) about a year ago, and which has turned out to be very successful. I’ve been meaning to write about it for a while now, but I’ve never really found the time to do so thoroughly, until now. I won’t talk about any of the projects’ details, merely about the branching strategy and release management. It focuses around Git as the tool for the versioning of all of our source code.

What is version control? Version control systems are a category of software tools that help a software team manage changes to source code 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 turn back the clock and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members. For almost all software projects, the source code is like the crown jewels - a precious asset whose value must be protected. For most software teams, the source code is a repository of the invaluable knowledge and understanding about the problem domain that the developers have collected and refined through careful effort. Version control protects source code from both catastrophe and the casual degradation of human error and unintended consequences.

Git Workflows and Tutorials The array of possible workflows can make it hard to know where to begin when implementing Git in the workplace. This page provides a starting point by surveying the most common Git workflows for enterprise teams. As you read through, remember that these workflows are designed to be guidelines rather than concrete rules. We want to show you what’s possible, so you can mix and match aspects from different workflows to suit your individual needs. Centralized Workflow Transitioning to a distributed version control system may seem like a daunting task, but you don’t have to change your existing workflow to take advantage of Git.

Ry’s Git Tutorial - RyPress Ry’s Git Tutorial is a complete introduction to distributed version control with a focus on practical command line usage. We explain Git’s robust branching, merging, and collaboration capabilities from the ground up, so prior experience with centralized systems like SVN or CVS is not required. Published Dec 23, 2012 – Tested on Git 1.7.10 Git Reference We've already seen how to use git log to compare branches, by looking at the commits on one branch that are not reachable from another. (If you don't remember, it looks like this: git log branchA ^branchB). However, you can also use git log to look for specific commits. Here we'll be looking at some of the more commonly used git log options, but there are many. Take a look at the official docs for the whole list. git log --author look for only commits from a specific author - git notes How remotes work One of the difficult things for a git beginner to understand is how remote branches work. Basically, as git is a distributed version control system, every developer has a full and independent repository. Using git-flow to automate your git branching workflow Vincent Driessen's branching model is a git branching and release management strategy that helps developers keep track of features, hotfixes and releases in bigger software projects. This workflow has lot of commands to type and remember, though, so there's also the git-flow library of git subcommands that helps automate some parts of the flow to make working with it a lot easier. After installing git-flow (brew install git-flow), you can start using git-flow in your repository by using it's init command. You can use it in existing projects, but let's start a new repository:

KB Article: Useful Queries for TRACK2SQL There are several ways to track various server problems using TRACK2SQL, and this article discusses some of the most common queries you might use. Times returned by these queries are in milliseconds. Process IO Consumption The following SQL statement returns user, command and "IO used", to show which processes consumed the most IO. Learn Git in 30 Minutes Danny Markov Git has exploded in popularity in recent years. The version control system is used by huge open source projects like Linux with thousands of contributors, teams of various sizes, solo developers and even students. Beginners are often terrified by all the cryptic commands and arguments that git requires.

Version Control Best Practices Commit Related Changes A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Setup your own private GitHub server using GitLab and Ubuntu Server 12.04 LTS I’m the first to admit that I absolutely love writing code and applications, I’m also a huge fan of GitHub, GitHub is a fantastic tool for hosting and collaborating on public projects such as open-source projects however and although you can pay to enable you to host private Git repositories on GitHub if you have more than a few you’ll soon start paying big bucks! Recently I found a fantastic ‘clone’ of GitHub, it’s called GitLab and pretty much has all the features that GitHub does and like GitHub, GitLab is written in Ruby (on Rails). In this blog post, I will demonstrate how to configure you’re own GitLab server specifically on Ubuntu Server 12.04 LTS – for those that follow my blog posts quite closely you’ll not doubt of realised by now that I do love Ubuntu Server (I prefer the debian based distros over the likes of the RedHat derivatives!)

Team Collaboration With GitHub GitHub has become the corner stone for all things open source software. Developers love it, collaborate on it and are constantly building awesome projects through it. Apart from hosting our code, GitHub's main attraction is using it as a collaborative tool. In this tutorial, let's explore some of the most useful GitHub features, especially for working in teams, making it all the more efficient, productive and, most importantly, fun! One thing that I find very useful is integrating the Github Wiki into the main source code project.

List of revision control software This is a list of notable software for revision control. Local data model[edit] In the local-only approach, all developers must use the same computer system. These software often manage single files individually and are largely replaced or embedded within newer software. Open source[edit]

Related:  GitHubGithub