background preloader

Contrôleurs de sources

Facebook Twitter

Basic Git Commands You Should Definitely Know. "Hello, Git!

Basic Git Commands You Should Definitely Know

I hate you already! " Most of us dislike Git on the first try even after running the most basic Git commands. Having a Git cheat sheet taped to our table doesn't help. Git is very complicated, as you can't learn all its concepts by just using it. Sadly, your life as a web developer will also be complicated without Git, and here's why. The #1 problem of life without Git is that you can't adequately manage project versions. When you remove or rework code, you can't restore its previous state (read: version). Here's another problem of development without Git: several developers will work on the same project, and they'll also need access to previous app versions. I can use Dropbox, Google Drive, OneDrive, a flash drive… any other drive to store my code and share it with everyone! That's true. Git easily solves both problems we've described: managing project versions and sharing code among developers. Git Cheatsheet.

Stash workspace index local repository upstream repository status Displays: <br>• paths that have differences between the index file and the current <code>HEAD</code> commit, <br>• paths that have differences between the workspace and the index file, and <br>• paths in the workspace that are not tracked by git. diff Displays the differences not added to the index.

Git Cheatsheet

Learn Git Branching. Learn Git - Why Git? Although there are dozens of version control systems on the market, some of the world's most renowned projects (like the Linux Kernel, Ruby on Rails, or jQuery) are using Git as their VCS of choice.

Learn Git - Why Git?

Here are some of the reasons why. Save Time Git is lightning fast. And although we're talking about only a few seconds per command, it quickly adds up in your work day. Use your time for something more useful than waiting for your version control system to get back to you. Work Offline What if you want to work while you're on the move? Undo Mistakes People make mistakes. Code School - Try Git. What’s with the 50/72 rule? What’s with the 50/72 rule?

What’s with the 50/72 rule?

Originally published in on February 21, 2015. It is part of common sense to assume that the worthiest commit messages lie far from any extremes. Years ago, I often fell in the trap of hastily sending a commit after commit, annoyed by the fact that I have to add a summary to it (let alone a description). I’ve seen many projects whose commit summaries consist primarily of one-word verbs like [FIX], [CLEAN], [TEST], etc.

They don’t tell much do they? On the other hand are the “novels”. Being verbose is by no means a bad thing. The art of making a great commit message In a 2008 blog post, tpope, described a system for creating commit messages, which I started calling simply, the “50/72" rule. The first line of your commit message must be maximum 50 characters long. Leave a blank line Start writing your description. Git is smart enough to distinguish the first line of your commit message as your summary. Git ready » learn git one commit at a time. Git Tips. I thought I would get down in a blog post the different Git commands and tips that I find really useful, because every now and then it seems I need to refer back to these notes (which up until this point have been in a txt file in my Dropbox) if I've not used a particular command in a while.

Git Tips

Hopefully you'll find them useful too. What we'll cover reading time: approx. 13mins. Learn Git - Learn Version Control with Git. HELP. Git - the simple guide - no deep shit! Git - the simple guide just a simple guide for getting started with git. no deep shit ;) by Roger Dudler credits to @tfnico, @fhd and Namics this guide in deutsch, español, français, indonesian, italiano, nederlands, polski, português, русский, türkçe, မြန်မာ, 日本語, 中文, 한국어 Vietnamese please report issues on github setup.

git - the simple guide - no deep shit!

Mercurial SCM. Hg Init: a Mercurial tutorial by Joel Spolsky. Subversion Tutorial Part 1 - How to Use SVN - Ayoka Lunch n' Learn Series. Svn - Learning how to use Subversion. Subversion – A Summary Cheat Sheet – Learn svn in 10 minutes. SVN Tutorial. Apache Subversion which is often abbreviated as SVN, is a software versioning and revision control system distributed under an open source license.

SVN Tutorial

Subversion was created by CollabNet Inc. in 2000, but now it is developed as a project of the Apache Software Foundation, and as such is part of a rich community of developers and users. This tutorial will give you great understanding on SVN system needed to maintain current and historical versions of files such as source code, web pages, and documentation. This tutorial is designed for Software Professionals who are willing to learn SVN system in simple and easy steps. This tutorial will give you great understanding on SVN system concepts and after completing this tutorial you will be at intermediate level of expertise from where you can take yourself at higher level of expertise.

Before proceeding with this tutorial you should have a basic understanding on simple terminologies like programming language, source code, documents etc. Learn Git Branching. Learn Version Control with Git - A step-by-step guide for the complete beginner : learnprogramming. Learn Git - Why Git? Code School - Try Git.