Empty GIT repository from Stash. What to do next.

Posted: February 14, 2013 in web

To get started you will need to run these commands in your terminal.

Configure Git for the first time
git config –global user.name “Emm E. Car”
git config –global user.email “emcar@car.com”

If you want to simply clone this empty repository then run this command in your terminal.
git clone http://emcar@web/stash/scm/TEST/tset.git

If you already have code ready to be pushed to this repository then run this in your terminal.
cd existing-project
git init
git add –all
git commit -m “Initial Commit”
git remote add origin http://emcar@web/stash/scm/TEST/tset.git
git push origin master

My code is already tracked by Git
If your code is already tracked by Git then add this repository as a new repository that you can push to.
cd existing-project
git remote set-url origin http://emcar@web/stash/scm/TEST/tset.git
git push origin master

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s