GIT for bigginers

use this link to download git into your system
http://www.git-scm.com/book/en/v2/Getting-Started-Installing-Git
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
mount dvd and create a repo

 

yum install git

mkdir /root/velocity

cd   /root/velocity
mkdir    velocityrepo
cd    velocityrepo
git init                                                    [it will create a .git directory]

[create some files there and put some directories there]

git status
git config –list

git add .
git commit -m “commit my velocity repofirst for the first time”
git config –global user.email “kkallumama@gmail.com”
git config –global user.name “kkallumama”
git commit -m “commit my velocity repofirst for the first time”
git remote add origin  https://kkallumama@github.com/kkallumama/velocityrepo.git
git push -u origin master
git remote -v
cd /root/velocity
ls -la

#to clone github repo into your computer

git clone https://kkallumama@github.com/kkallumama/velocity-lab.git

#[you can see velocity-lab directory]

 

Leave a Reply