kICKSTARTING






29 Dec 2013                                               SASTRA University

Let there be VERSION CONTROL, to


WHat today?



  • Import a new project
  • Making Changes
  • Viewing Project Changes
  • Managing Branches
  • Using Git for Collaboration
  • Next Steps

a new project


$ git init myproject

$ cd myproject

$ git add .

$ git commit -m "Importing my 

first code"



Collaborative git


                                            > Create Document
                                            > Spelling correction
                                            > Grammar fix
                                            > Color change
                                            > Feature description
                                            > Company logo

dOUG AND DANA


doug . $ git checkout master

doug . $ git commit -a -m "My new logo"

doug . $ git push 

dana . $ git checkout -b danasfeature

dana . $ git commit -a -m "My feature code"

dana . $ git push origin danasfeature 


dOUG AND DANA


doug . $ git checkout master

doug . $ git commit -a -m "My new logo"

doug . $ git push 

dana . $ git checkout -b danasfeature

dana . $ git commit -a -m "My feature code"

dana . $ git push origin danasfeature 


doug . $ git pull 

doug . $ git merge danasfeature

DOCUMENTATION DIERK


$ git add -p Myreport.markdown

$ git commit -m "Added latest statistics"

$ git log --graph --decorate 

 

GET GOING


FEDORA  >

sudo yum install git 

DEBIAN / UBUNTU >

sudo apt-get install git 

ARCH LINUX >

$ pacman -S git 

..

Setting Up >>
$ git config --global user.name "your_username"

$ git config --global user.email "yourmail@mail.com"



$ ssh-keygen -t rsa -C "your_email@example.com"

$ ssh-add id_rsa


QUICK WINS


..git is


  • Open, not locked
  • Distributed, not centralized
  • Conversations, not cutoffs
  • Journal, not backup


@dolftax
Made with Slides.com