background preloader

Git

Facebook Twitter

Tiimgreen/github-cheat-sheet. GUI Clients. Git comes with built-in GUI tools for committing (git-gui) and browsing (gitk), but there are several third-party tools for users looking for platform-specific experience. Only show GUIs for my OS (Linux)0Linux GUIs are highlighted below ↓ TowerPlatforms: MacPrice: $59/user (Free 30 day trial) GitboxPlatforms: MacPrice: $14.99 Git ExtensionsPlatforms: WindowsPrice: Free git-colaPlatforms: Windows, Mac, LinuxPrice: Free GitEyePlatforms: Windows, Mac, LinuxPrice: Free gitgPlatforms: LinuxPrice: Free. 6 Useful Graphical Git Client for Linux. While git has been around for some time, it is only recently that I used it for collaboration with a co-worker.

For those who are not aware, git is a distributed version control system with complete history and full revision tracking capabilities. It is a great tool for developers to collaborate without losing their sanity. In Linux, the most primitive way of using git is via the command line. Once you have installed git (with the command “sudo apt-get install git“), you can use the few commands “git add *“, “git commit“, “git pull“, “git push” to manage your repository. Git-cola is developed in Python and comes with the usual pull, push, commit functions. In Ubuntu, git-cola is found in the repository and can be installed via Ubuntu Software Center, or via the command: sudo apt-get install git-cola gitg is a simple application. In Ubuntu, gitg can be installed with the command: sudo apt-get install gitg SmartGit is a cross-platform java-based full featured git client. 1. 2. 3.

To 4. How the Heck Do I Use GitHub? Git ignore file for Xcode projects. Git Commands. I've used git quite a bit but I don't consider myself a git expert, per se. I often find myself looking up the same basic commands so I thought I'd share them there so I'd have a fast reference, and maybe this will help you out too! Create and Checkout a New Branch git checkout -b <branchName> Checkout a Remote Branch git checkout -b <localBranchName> origin/<remoteBranchName> Abort Changes of a File git checkout -- <fileName> Modify the Previous Commit's Message git commit --amend Partial Change Checkin git add --edit Undo the Previous Commit git revert HEAD^ Temporarily Stash Changes, Restore Later git stash git stash pop Delete a Remote Branch git push origin :<branchName> Pull in the Latest from a Shared Repository git remote add <remoteName><gitAddress> git fetch <remoteName> Tagging, Deleting, and Pushing Tags git tag <tagName> git tag -d <tagName> git push --tags Who F'd it All Up?

Git blame <fileName> These basic git commands should help you on your way. Older Newer. GIT commands. Here you will find a list with the major commands, their short descriptions and exemplary usage. For a detailed description of all the GIT commands please visit git config Sets configuration values for your user name, email, gpg key, preferred diff algorithm, file formats and more. Example: git config --global user.name "My Name" git config --global user.email "user@domain.com" cat ~/.gitconfig [user] name = My Name email = user@domain.com git init Initializes a git repository – creates the initial ‘.git’ directory in a new or in an existing project.

Example: cd /home/user/my_new_git_folder/ git init git clone Makes a Git repository copy from a remote source. Also adds the original location as a remote so you can fetch from it again and push to it if you have permissions. Example: git clone git@github.com:user/test.git git add Adds files changes in your working directory to your index. Hitler uses git. A successful Git branching model » nvie.com. Note of reflection (March 5, 2020)This model was conceived in 2010, now more than 10 years ago, and not very long after Git itself came into being.

In those 10 years, git-flow (the branching model laid out in this article) has become hugely popular in many a software team to the point where people have started treating it like a standard of sorts — but unfortunately also as a dogma or panacea.During those 10 years, Git itself has taken the world by a storm, and the most popular type of software that is being developed with Git is shifting more towards web apps — at least in my filter bubble. Web apps are typically continuously delivered, not rolled back, and you don't have to support multiple versions of the software running in the wild.This is not the class of software that I had in mind when I wrote the blog post 10 years ago.

Why git? ¶ For a thorough discussion on the pros and cons of Git compared to centralized source code control systems, see the web. The main branches ¶ develop. Book. Git. Git est un logiciel de gestion de versions décentralisé. Il est conçu pour être efficace tant avec les petits projets, que les plus importants. Git a spécialement été créé pour le développement du noyau linux. Ce projet a débuté en 2005, Linus Torvalds voulait créer une alternative au logiciel propriétaire BitKeeper. Depuis, Git a beaucoup évolué et est utilisé par de nombreux projets. Contrairement à des outils comme SVN ou CVS, Git fonctionne de façon décentralisée, c'est-à-dire que le développement ne se fait pas sur un serveur centralisé, mais chaque personne peut développer sur son propre dépôt.

Pour pouvoir utiliser Git, il suffit d'installer le paquet git. Git dispose également de nombreux plugins, les plus utilisés sont dans les dépôts : git-lfs : Gestion des gros fichiers, notamment binaires (large file storage) (tuto (en)) etc. Une fois l'installation réalisée, il faut impérativement définir le paramètre [user]. Gérer les dépôts mkdir nom_depot cd nom_depot git init ou État du dépôt.