42birds: Learn Version Control with Git

From 33C3_Public_Wiki
Jump to: navigation, search
Description If you'll ever attend a hackathon, hack day, hackfest or codefest sooner or later you'll have to deal with Git – a free version control system for coders / hackers.
Website(s) https://b76.ch/9542
Type Hands-On
Kids session No
Keyword(s) social, software, web, hacking, coding
Tags Git, GitHub, SSH, HTTPS, Linux, Coding, CLI, Hacking, Terminal, Bash, Command-line interface, Hackathon, 42birds
Person organizing Birdy1976
Language en - English
en - English
Other sessions...


Starts at 2016/12/30 10:00
Ends at 2016/12/30 10:42
Duration 42 minutes
Location Hall C.4

We'll install Git on your computer, open your account at GitHub, create a new repository and start committing code / text to it. You'll feel like the mad software developer next door B)


Workflow with Git


Set Up Git, Create A Repo


Pro Git book (pdf, epub, mobi or html)


Basic commands

// Clone repository

git clone https://github.com/birdy1976/hello-world.git

// Display changed files

git status

// Changes in the working copy

git diff

// Look up more options for diff

man git-diff

// Add changed file(s) to commit in the next step

git add "README.md"

// Commit the changes to the local repository

git commit -m "Changed some text"

// Publish changes on GitHub

git push

git add -p: The most powerful git feature you're not using yet