Monday, August 27, 2012

How to use git?

Using Git

Global setup:

git config --global user.name "Your FirstName LastName"
git config --global user.email your-email@example.com

Installing New repository (do only once)

mkdir acks
cd acks
git init
#create file README
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:acksApp/acks.git
git push origin master

Installing from an Existing Git Repo (do only once)

cd existing_git_repo
git remote add origin git@github.com:acksApp/acks.git
git push origin master
        

Clone repository (For new users once the repository is installed)

git clone git@github.com:acksApp/acks.git

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...