background preloader

Git - the simple guide - no deep shit!

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 Download git for OSX Download git for Windows Download git for Linux create a new repository create a new directory, open it and perform a git init to create a new git repository. checkout a repository create a working copy of a local repository by running the command git clone /path/to/repository when using a remote server, your command will be git clone username@host:/path/to/repository workflow your local repository consists of three "trees" maintained by git. the first one is your Working Directory which holds the actual files. the second one is the Index which acts as a staging area and finally the HEAD which points to the last commit you've made. add & commit pushing changes

Related:  Progart tutorialsGitHubTo Be Sorted 6GIT

How to Create Your Own Git Server Although I'm a happy (also paying) user of GitHub's offerings, there are times when I prefer to host a private repository on a server I control. Setting up your own Git server can be useful if you're isolated from the public internet, if you're subject to inflexible regulations, or if you simply want features different from those offered by GitHub (and other similar providers). Setting up a Git server on a Unix (Linux, Mac OS X, *BSD, Solaris, AIX) machine isn't difficult, but there are many details to observe. Git Cheatsheet stash workspace index local repository upstream repository status Git Reference git reset is probably the most confusing command written by humans, but it can be very useful once you get the hang of it. There are three specific invocations of it that are generally helpful. git reset HEAD unstage files from index and reset pointer to HEAD First, you can use it to unstage something that has been accidentally staged. Let's say that you have modified two files and want to record them into two different commits.

Amazon Prime or Amazon Redline? Amazon’s same-day delivery service skirts many predominantly minority neighborhoods, raising a familiar charge that tech-company business imperatives can result in de facto digital inequality. Amazon has held out its Amazon Prime membership, which offers free shipping on many items, as a form of digital equality, given that all customers pay the same $99 annual fee. But with its upgrade to same-day delivery service, a clear disparity is emerging. An analysis by Bloomberg found that in many major cities, Prime members in predominantly poor and black neighborhoods can’t get the same-day treatment. In cities including Atlanta, Chicago, Dallas, and Washington, “black citizens are about half as likely to live in neighborhoods with access to Amazon same-day delivery as white residents,” the Bloomberg analysis found. New York’s borough of the Bronx, for instance, doesn’t get the service.

Three Battle Tested Ways to Install PostgreSQL Having run over 100 students through my Ruby on Rails courses, I've come up with some straight forward ways to install PostgreSQL without too much pain. Here is how I do it: PostgreSQL is a relational database manager that keeps getting more and more popular within the web development community. It has taken over from MySQL as the preferred tool for production quality, scalable databases. The rise in popularity is likely due to the backlash from Oracle purchasing and messing with MySQL, Heroku choosing Postgres as the preferred database in production, and Postgres' faster pace of development of new features like Arrays and HStore.

SweetFX Shader Suite release and discussion thread This is the official release thread for SweetFX. Current version is 1.3 You can download it here on Guru3D's mirrors, or on dropcanvas. It's also on Skyrim nexus (where you can also find older versions). On Dropcanvas you can also find versions of my shaders that will work with Media Player Classic so you can use them to improve movie watching as well. I'll be posting new releases here and you can discuss SweetFX and share settings here too (use the code tag and optionally the spoiler tag when posting settings). 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. (By the way, if you’re interested in Git, our company GitPrime provides some awesome realtime data analytics on software engineering performance.)

Basic Branching and Merging Let’s go through a simple example of branching and merging with a workflow that you might use in the real world. You’ll follow these steps: Do work on a web site.Create a branch for a new story you’re working on.Do some work in that branch. ‘Do What You Love’ Is Terrible Advice It’s been said in many places and by many luminaries: Do what you love. But what does this phrase actually mean? Miya Tokumitsu, a contributing editor at Jacobin magazine and author of the new book Do What You Love And Other Lies About Success and Happiness, criticizes the pervasiveness of this idea in American work culture. She argues that “doing what you love” has been co-opted by corporate interests, giving employers more power to exploit their workers. I recently spoke with Tokumitsu about work myths and why we should pay attention to them. The following transcript of our conversation has been edited for clarity.

50 Reasons not to use Photoshop for Webdesign First things first, I love Photoshop. It is the world’s best program for image editing. I do not intend to say Photoshop is a bad program, I just wish to clear up the misunderstanding that Photoshop is the right tool to use for web and screen design. Polygonal Map Generation for Games I wanted to generate interesting game maps that weren’t constrained to be realistic, and I wanted to try some techniques I hadn’t tried before. I usually make tile maps but instead used a different structure. What could I do with 1,000 polygons instead of 1,000,000 tiles? face replication products Create a wonderful gift for someone special ... featuring their face ... or the face of someone they love, or treat yourself ... with your own image... or the likeness of someone you love! Tell me more All we need is a photo of the front of someone's face. If you have or can take side photo(s), all the better.

Related:  GitProgrammingPLProgramacionGit