ebeshero / DHClass-Hub

a repository to help introduce and orient students to the GitHub collaboration environment, and to support DH classes.
GNU Affero General Public License v3.0
27 stars 27 forks source link

Pushing / Pulling from GitHub Repos #667

Closed i-myers closed 5 years ago

i-myers commented 5 years ago

I do not believe I've been added as a collaborator yet and need to be added as one. My username is @i-myers. @ebeshero

ebeshero commented 5 years ago

@i-myers Not so! You are already a full collaborator here, as I just tested here. The fact that I can “ping” you with the @ symbol helps demonstrate one of the perks of membership in this repo. Also you were able to open a new issue here, which only a collaborator on this repo can do!

ebeshero commented 5 years ago

@i-myers Are you having trouble with pushing a file to the repo? Let me know what trouble you are seeing...

i-myers commented 5 years ago

@ebeshero

I am unfortunately. What happened is that I copied in my xml file to the sandbox. Problem is my CPU didn't seem to recognize it being there when I tried to copy my sandbox file from my CPU here to the DHClass-Hub here on Github. Did I have to make a repo first then copy my sandbox file to here or am I just missing something?

ebeshero commented 5 years ago

@i-myers Hmmm. Tell me if I understand this right:

i-myers commented 5 years ago

@ebeshero

I did clone the DHClass-Hub onto my computer, it is in my documents right now. Specifically in my Schoolwork folder.

I don't think I did do a git pull yet. Though now I'm gonna try it. First I should probably make my repository though for putting the sandbox file in it.

Yes, my I copied and put in my XML file which I'll use for this into my Sandbox directory. Though first I'm gonna make my repository then try the git pull.

ebeshero commented 5 years ago

@i-myers To pull and push from DHClass-Hub, first of all, you won't need to make a new Sandbox directory! But try this:

ebeshero commented 5 years ago

@i-myers note: I just edited my post above, so take a look at it on GitHub. :-)

ebeshero commented 5 years ago

@i-myers I just logged in on my desktop here at home and pulled in your successful commit! Congratulations! You pushed your XML file to the Sandbox here on DHClass-Hub!

ebeshero commented 5 years ago

See https://github.com/ebeshero/DHClass-Hub/tree/master/Sandbox

i-myers commented 5 years ago

@ebeshero

Thank you for all the help, I highly appreciate it a ton!

ebeshero commented 5 years ago

No worries! I renamed this issue and I'll leave it open for a bit in case others need similar help!

ebeshero commented 5 years ago

And thank you for posting--that's exactly what DHClass-Hub is here for!

lmcneil7 commented 5 years ago

hello, I'm having a similar issue. I've put a file into the Sandbox of DHClass-Hub, but every time I use the command git pull, it keeps saying "already up to date". I've tried multiple ways in putting the file into the Sandbox, deleting the file and re-uploading and it's still not working. At this point I'm just stumped.

ebeshero commented 5 years ago

@lmcneil7 Did you figure it out? git pull will pull in any changes made to our DHClass-Hub in terms of files that the rest of us have been pushing. To push your own file, try doing git status to see if your repo is noting any changes. If you've saved your file in your Sandbox, you should see a change. Then try git add . and git commit -m "your commit message" andgit push` Hope this works!

lmcneil7 commented 5 years ago

I think I did it now. I ended up just using a computer in the computer lab. I'm not sure why it didn't work on my laptop, but I'm pretty sure I did it.

ebeshero commented 5 years ago

@lmcneil7 If you have your laptop with you today, let's take a look at it quickly before or after class and see if we can figure it out...