Let's Collaborate (cont.)
Initial push to empty remote repo
There are a couple different ways to accomplish your first push.
Option 1 (clone first, then push):
git clone [project URI]
cd [cloned project directory]
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Option 2 (local git pushed to empty remote):
cd existing_folder
git init
git remote add origin [project URI]
git add .
git commit
git push -u origin master
Option 3 (use Web UI to create README.md)
Navigate to project inside Gitlab
Use web UI to create new README.md text file
Look for "adding README" link under the empty project notice).
Add content and commit via web interface
Perform clone onto local work area.
Last updated