How to checkout an project from Git Lab?


Starting from scratch
To start using your repository from scratch, in your command line type the following:

git clone https://accountname.git.beanstalkapp.com/gitreponame.git -o beanstalk
cd gitreponame
echo “This is my new project on Beanstalk.” > README
git add README
git commit -m “My first commit.”
git push beanstalk master

With the commands above, you will create a folder, add a file to it, make your first commit, and push the changes to your repository, to master branch. Master branch is the default branch to use for your files.

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