Skip to content

oluoluoxenfree/learn-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

learn-git

I hope you're having a wonderful time at Afrotech Fest!

We're going to do a merge :)

If you're on twitter I am @oluoluoxenfree and please use #gitit or #gititrealgood to amuse me if you tweet about this.

All genders are welcome to the information within but I couldn't resist...

Beyonce is in a suit at an information desk with the slogan 'okay ladies now let's get information'

Whether you know a little or a lot about git and Github I hope you'll find something interesting here.

There are two main ways to interact with git; through a GUI (graphical user interface) client or through the command line.

I'll be concentrating on command line usage in this workshop, but if you're more comfortable with Sourcetree, Github Desktop or one of the many other graphical tools available that's also cool! Just please don't ask me to help you with them as I have no idea. 😂😂

If you've never used the command line (Terminal on OSX, Command Prompt on Windows - though on Windows I recommend installing cmdr to make things easier) before, it can definitely be a bit intimidating. Don't worry though, you really don't need to know much to get going, and even less to be dangerous functional in a software team.

It's dangerous to go alone, take this

This isn't a command line workshop as you may have guessed, but I'll link you to some tutorials in case you're curious, lost or distrust me intensely.

The only completely essential terminal commands you need for this workshop are:

  • cd this changes your directory (cd get it?!). A 'directory' is a folder on your computer if you're looking at it graphically. e.g. cd Documents would take you into your Documents folder.

  • cd .. lets you go to the directory above the one you're in aka the folder containing the one you're in.

Xhibit is laughing and the text reads yo dawg I heard you like memes so I put a meme inside your meme so you can meme while you meme

  • ls This lists all the folders in the current directory.
  • Possibly also sudo, which gives you administrator access aka the ability to install (and delete and otherwise change) things

See that wasn't too bad, was it?

Main character from legally blonde says what, like it's hard?

You'll need to these steps if you haven't already:

  1. Set up a github account (If you want! No obligation)
  2. Set up git on your computer (Okay you do actually have to do this one)
  3. Get a code editor (I recommend Atom or VSCode)
  4. Profit Get started.

Tutorials (Oops, what's happened to this heading? Let's fix it! You might need to look up github flavoured markdown. Fork this repository, make your change locally, add, commit and push your changes back to your fork. You can do it!)

Cheatsheets

Essential git skills

  • Clone
  • Pull
  • Add
  • Commit
  • Push

Actor who plays kenan in kenan and kel saying "that's it"

I'm half joking but if you can do all of that and know how to delete a folder on your computer you can get a long way!

Okay I guess this stuff is essential too, especially if you hope to work on a project with more than one person

  • Make a branch
  • Delete a branch
  • Change branch
  • Merge branches
  • Reset
  • Clean
  • git log

Tyra Banks types at an old computer

And some spicy stuff for you advanced students

  • Rebase
  • Cherrypick
  • Revert
  • git hooks

Congratulations! You now know more about git than you did before.

Man in a long coat mashes buttons on various store model laptops. Improbably locations like banks pop up as "all hacked"

About

Resources to learn all about git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published