Tuesday, May 7, 2013

Git Setup Remote Tracking Branch


Git global setup

git config --global user.name "Test User"
git config --global user.email "testuser@gmail.com"

Create Repository

mkdir testproject
cd testproject
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@gitlab.testserver-123.testuser/testprojects.git
git push -u origin master

Existing Git Repo?

cd existing_git_repo
git remote add origin git@gitlab.testserver-123.testuser/testprojects.git
git push -u origin master

No comments:

Post a Comment