uwhpsc-2016 / homework1

Homework #1
1 stars 1 forks source link

Unable to set up repo - sarahmagluyan #29

Open sarahmagluyan opened 8 years ago

sarahmagluyan commented 8 years ago

Followed the link and accepted the homework assignment, but my repo is empty.

Am I missing a step?

cswiercz commented 8 years ago

The login credentials for using git are those used in GitHub, not SMC.

sarahmagluyan commented 8 years ago

Yep! I was able to clone the repo, but it says that the repo I've cloned is empty.

quantheory commented 8 years ago

I believe that I have fixed this for you. Not sure why the repository was empty; it must have been another glitch. Just in case you're curious, the commands I used were:

# Clone the (empty) repo and go into that directory.
git clone https://github.com/uwhpsc-2016/homework1-sarahmagluyan
cd homework1-sarahmagluyan
# Add the `upstream` remote with the content that we need.
git remote add upstream https://github.com/uwhpsc-2016/homework1
# Fetch from that remote.
git fetch upstream
# Merge the changes into the current master. (`--ff-only` is unnecessary here,
# but I do this out of habit when I haven't made my own changes.)
git merge --ff-only upstream/master
# Push back to origin.
git push
sarahmagluyan commented 8 years ago

There is content in there now! Thank you @cswiercz and @quantheory