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. Then this hands-on session (33c3 / CoSin) is for you!
We’ll install Git, 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. PS: Ideas for improvement welcome 🙂
Ressources
Basic Commands (Bonus)
// 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
Recommendations by Participants
- git add -p: The most powerful git feature you’re not using yet
- Learn to handle basic branching and merging
- Git For Ages 4 And Up (YouTube)