Thursday, December 25, 2014

GIT Commands

1. How to setup git clone for the first time?
Open git bash terminal and run the following commands
git config --global user.email "YOUR_GIT_PROJECT_CONFIGURED_EMAIL_ID"
git config --global user.name "YOUR_NAME"
mkdir /d/git/YOUR_DIRECTORY_NAME
cd /d/git/YOUR_DIRECTORY_NAME
git init
git remote add origin GIT_URL
git pull origin  master

2. How to work on existing git project?
Modify any file or directory in your local git repository
cd/d/git/YOUR_DIRECTORY_NAME
git status
git commit -m 'VALID_COMMENT'
git push -u origin master

3. How to check the current status of your local git repository?
git status

4. How to remove existing remote git repository?
git remote rm origin

5. How to add a new remote git repository?
git remote add origin GIT_URL

Monday, February 15, 2010

How to fix .identity issue?

cd *.vws/.identity
chmod 4400 uid
chmod 2410 gid

Sunday, February 14, 2010

How to obsolete a replica?

multitool chmaster -all -long -c "Site X shutdown" -obsolete_replica old_replica_to_be_removed new_replica

Type "yes" to continue

Saturday, January 2, 2010

How to setup Clearcase UCM with Clearquest

1) Install "Install Manager"
2) Install Rational Clearquest.
3) Install Rational Clearcase
4) Install Oracle
4.1) Create primary tablespace for oracle admin user.
4.2) Create temp tablespace for oracle admin user.
4.3) Create admin user. Eg: cqadmin
4.4) Create primary tablespace for oracle user.
4.5) Create temp tablespace for oracle user.
4.7) Create user. Eg: cqaduser
4.8) Grant connect,resource permission to both the users.
5) Using Clearquest Maintenance tools create a connection to the database.
connection : cqaddb
Server : homevm01
SID : cqaddb
User : cqadmin
Password : cqadmin
Database : CQADB
6) Clearquest User administration credentials.
user : admin
pass :

User : sathi3
User : sathi3

Wednesday, December 23, 2009

shell command substring

The below command will print the string which is taken from the 9th index to 4 characters from 9th index.
echo | awk '{ print substr("'"$STRING"'",9,4) }'

Monday, December 21, 2009

Example Find query

The below command will list files on branch_7.0 which are not having the mentioned labels.
ct find . -version "{version(…/bracnch_7.0/LATEST) && ! lbtype(label1) && ! lbtype(label2) && ! lbtype(label3) && ! lbtype(lable4T) && ! lbtype(lable5) && ! lbtype(lable66)} " -print