background preloader

GitHub Guides

GitHub Guides

Git for Windows How to undo (almost) anything with Git Understanding the GitHub Flow · GitHub Guides GitHub Flow is a lightweight, branch-based workflow that supports teams and projects where deployments are made regularly. This guide explains how and why GitHub Flow works. Create a branch When you're working on a project, you're going to have a bunch of different features or ideas in progress at any given time – some of which are ready to go, and others which are not. Branching exists to help you manage this workflow. When you create a branch in your project, you're creating an environment where you can try out new ideas. ProTip Branching is a core concept in Git, and the entire GitHub Flow is based upon it. Because of this, it's extremely important that your new branch is created off of master when working on a feature or a fix. Add commits Once your branch has been created, it's time to start making changes. Commits also create a transparent history of your work that others can follow to understand what you've done and why. Open a Pull Request Discuss and review your code Deploy Merge

How to embed youtube video to markdown file, GitHub or GitLab comments · Sergei Sviridov's Blog I usually struggle to remember all the parameters for inserting links and especially images to the markdown which is the default format for GitHub, GitLab comments and documentation files and for this blog as well. Moreover, neither GitHub nor GitLab supports inserting videos. One of the workarounds for this issue with videos is to insert an image of for the video wrapped in a link pointing to the video location. ! whereas we use the following markup to insert links [link text]( "title") So, combining these two markups allows us inserting image with link to the markdown [! Good! Inserting youtube clickable image to markdown Let’s try to do the same thing with Audi R8 youtube video. First, we need to grab an image from the video. For Audi R8 video the image is going to be The only one thing is left, which is combining image with url [! Great! Automatic Conversion

Ignoring files From time to time, there are files you don't want Git to check in to GitHub. There are a few ways to tell Git which files to ignore. Create a local .gitignore If you create a file in your repository named .gitignore, Git uses it to determine which files and directories to ignore, before you make a commit. A .gitignore file should be committed into your repository, in order to share the ignore rules with any other users that clone the repository. GitHub maintains an official list of recommended .gitignore files for many popular operating systems, environments, and languages in the github/gitignore public repository. In Terminal, navigate to the location of your Git repository.Enter touch .gitignore to create a .gitignore file. The Octocat has a Gist containing some good rules to add to this file. If you already have a file checked in, and you want to ignore it, Git will not ignore the file if you add a rule later. git rm --cached FILENAME Create a global .gitignore Explicit repository excludes

Git Cheat Sheet Even with a GUI application at hand there are times when you resort to the command line. We admit we can’t memorize all important Git commands – that’s why we created a nice cheat sheet for Git that we would like to share with you. On the front you can find all important commands. On the back you can find our Version Control Best Practices that help you get the most out of version control with Git. Available in English | Deutsch | Português | العربية and for download as ZIP including various designs. Download ZIP Size: 0.9 MB, inc. 3 alternative designs & multiple languages for free …and get free email updates.

Contribution à un projet La principale difficulté à décrire ce processus réside dans l’extraordinaire quantité de variations dans sa réalisation. Comme Git est très flexible, les gens peuvent collaborer de différentes façons et ils le font, et il devient problématique de décrire de manière unique comment devrait se réaliser la contribution à un projet. Chaque projet est légèrement différent. Les variables incluent la taille du corps des contributeurs, le choix du flux de gestion, les accès en validation et la méthode de contribution externe. La première variable est la taille du corps de contributeurs. Combien de personnes contribuent activement du code sur ce projet et à quelle vitesse ? La variable suivante est le mode de gestion utilisé pour le projet. La variable suivante est la gestion des accès en écriture. Toutes ces questions affectent la manière de contribuer efficacement à un projet et les modes de gestion disponibles ou préférables. Guides pour une validation Cas d’une petite équipe privée Note Résumé

Registering GitHub Account in PhpStorm To retrieve data from GitHub repositories and share your projects in right from PhpStorm, you need to register your GitHub account credentials in the IDE. You can also create an account on the GitHub free hosting without leaving PhpStorm. In either case, PhpStorm remembers the login and password so you do not need to specify them while retrieving or uploading data. To register GitHub account credentials Open the IDE Settings and click GitHub. On the GitHub page that opens, select the type of authentication that you want to use from the Auth Type drop-down list. To create a GitHub account from PhpStorm Open the IDE Settings and click GitHub. Git Tutorial - Try Git Using Git To use Git on the command line, you will need to download, install, and configure Git on your computer. You can also install GitHub CLI to use GitHub from the command line. For more information, see "About GitHub CLI." If you want to work with Git locally, but do not want to use the command line, you can instead download and install the GitHub Desktop client. For more information, see "Installing and configuring GitHub Desktop." If you do not need to work with files locally, GitHub lets you complete many Git-related actions directly in the browser, including: Setting up Git Download and install the latest version of Git.Note: If you are using a Chrome OS device, additional set up is required:Install a terminal emulator such as Termux from the Google Play Store on your Chrome OS device.From the terminal emulator that you installed, install Git. Authenticating with GitHub from Git Note: You can authenticate to GitHub using GitHub CLI, for either HTTP or SSH. Connecting over SSH

Use SSH keys to communicate with GitLab Git is a distributed version control system, which means you can work locally, then share or push your changes to a server. In this case, the server you push to is GitLab. GitLab uses the SSH protocol to securely communicate with Git. What are SSH keys SSH uses two keys, a public key and a private key. The public key can be distributed.The private key should be protected. It is not possible to reveal confidential data by uploading your public key. You can use your private key to sign commits, which makes your use of GitLab and your data even more secure. For details, see Asymmetric cryptography, also known as public-key cryptography. Prerequisites To use SSH to communicate with GitLab, you need: The OpenSSH client, which comes pre-installed on GNU/Linux, macOS, and Windows 10.SSH version 6.5 or later. To view the version of SSH installed on your system, run ssh -V. Supported SSH key types To communicate with GitLab, you can use the following SSH key types: ED25519 SSH keys ED25519_SK SSH keys

git - petit guide - no deep shit! git - petit guide juste un petit guide pour bien démarrer avec git. no deep shit ;) par Roger Dudler (translation by KokaKiwi) Remerciements à @tfnico, @fhd, Namics this guide in english, deutsch, español, indonesian, italiano, nederlands, polski, português, русский, türkçe, မြန်မာ, 日本語, 中文, 한국어 installation Télécharger git pour Mac OSX Télécharger git pour Windows Télécharger git pour Linux créer un nouveau dépôt créez un nouveau dossier, ouvrez le et exécutez la commande git init pour créer un nouveau dépôt. cloner un dépôt créez une copie de votre dépôt local en exécutant la commande git clone /path/to/repository si vous utilisez un serveur distant, cette commande sera git clone username@host:/path/to/repository arbres ajouter & valider Vous pouvez proposer un changement (l'ajouter à l'Index) en exécutant les commandes git add <filename> git add * C'est la première étape dans un workflow git basique. envoyer des changements branches mettre à jour & fusionner tags remplacer les changements locaux

Related: