Getting Started With Git

B8e2d1d94c037353bb66c18ffaf9ef96?s=47 codebar
November 18, 2014

Getting Started With Git

introductory talk for git

B8e2d1d94c037353bb66c18ffaf9ef96?s=128

codebar

November 18, 2014
Tweet

Transcript

  1. Getting Started With Git @najamsikander @codebarpk

  2. Linus Torvalds wrote to mange Linux code.

  3. Your Grandma’s Version Control

  4. Git is Distributed.

  5. None
  6. Git Commands to memorize $git init $git status $git add

    . $git commit –m “first commit” $git log
  7. None
  8. Git Configure $ git config -- global user.name “Najam awan”

    $ git config -- global user.email “najamsk@gmail.com” $ git config --global color.ui auto
  9. Put your repo on diet ## Ignore Visual Studio temporary

    files, build results, and ## files generated by popular Visual Studio add-ons. # User-specific files *.suo *.user *.sln.docstates JumpStartPakistan/JumpStartPakistan.Web/Uploads/
  10. Branches

  11. None
  12. SSH Key $ ssh-keygen -t rsa -C "your_email@example.com" # Creates

    a new ssh key, using the provided email as a label # Generating public/private rsa key pair. # Enter file in which to save the key (/c/Users/you/.ssh/id_rsa): [Press enter] Enter passphrase (empty for no passphrase): [Type a passphrase] # Enter same passphrase again: [Type passphrase again] Your identification has been saved in /c/Users/you/.ssh/id_rsa. # Your public key has been saved in /c/Users/you/.ssh/id_rsa.pub. # The key fingerprint is: # 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@example.com
  13. Remote $ git remote add origin git@github.com:najamsk/git14bar.git $ git push

    -u origin master Clone $ git clone git@github.com:najamsk/vimsetup.git
  14. THANKS