git scm in one hour

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

git scm in one hour

basics of git

Grzegorz Wilczyński

February 05, 2014

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

12 slides
  1. Setup ❖ git config --global user.name "Your Name"" ❖ git

    config --global user.email "[email protected]"" ❖ Unix users:! ❖ git config --global core.autocrlf input" ❖ git config --global core.safecrlf true" ❖ Windows users:! ❖ git config --global core.autocrlf true" ❖ git config --global core.safecrlf true
  2. Practice ❖ git clone [email protected]:gwilczynski/git-scm-in-one-hour.git" ❖ git status" ❖ vim

    cupcake.txt" ❖ git add --all" ❖ git commit -m "added cupcake"" ❖ git push
  3. Practice ❖ git log! ! ❖ commit 8e222b5bd022d0250795472f8ee9a415b74b87d0" ❖ Author:

    Grzegorz Wilczynski <[email protected]>" ❖ Date: Tue Feb 4 22:43:06 2014 +0100" ❖ added cupcake" ! ❖ commit 6eb8670d1a6b877f7318a7389e79475617c05aea" ❖ Author: Grzegorz Wilczyński <[email protected]>" ❖ Date: Tue Feb 4 12:53:28 2014 -0800" ❖ Initial commit
  4. Practice ❖ git checkout -b pink-team" ❖ git push origin

    pink-team" ❖ git checkout -b pink-team origin/pink-team -t" ❖ git merge pink-team
  5. Practice ❖ Auto-merging cupcake.txt" ❖ CONFLICT (content): Merge conflict in

    cupcake.txt" ❖ Automatic merge failed; fix conflicts and then commit the result.
  6. Practice ❖ <<<<<<< HEAD" ❖ Cupcake test dolor " ❖

    =======" ❖ Rose ipsum dolor " ❖ >>>>>>> pink-team

More Decks by Grzegorz Wilczyński

Other Decks in Programming