newtfire / textEncoding-Hub

shared repo for DIGIT 110: Text Encoding class at Penn State Erie, The Behrend College
https://newtfire.github.io/textEncoding-Hub/
Creative Commons Zero v1.0 Universal
16 stars 0 forks source link

Add files via upload #76

Closed 03lizchavez closed 11 months ago

ebeshero commented 11 months ago

@03lizchavez Looks like you tried uploading a file directly to the textEncoding-Hub, and it created a branch from the main repo.

This isn't quite what we want you to do. We want you to be making the changes from your local computer, using git commands. When you use these, you work with your local folder (clone of the textEncoding-Hub) that you keep connected to the repository as it changes with everyone's contributions. When you add files by upload, they can come from anywhere on your computer. You update only the remote (online web) repo, and your local computer's clone (version of the repo) falls out of sync--you aren't pulling in changes from others and merging them with your own.

So, yes--use the shell, and at your clone of this textEncoding-Hub use the git commands to git pull (update your clone of the repo). Then save your XML file in the directory where we asked you to store it, and use the git commands to add, commit, and push it up. That will let you effectively label your change with the commit message, and make it part of the logged history of the git repo on both your computer and the remote web version.

ebeshero commented 11 months ago

You can always "add files via upload", but the problem with this is your local clone of the repo falls out of sync with the remote. People use that "add files via upload" feature when they really aren't working with git tools and have no other way to send files. That's not you--though let me know if you need help with your git commands working. Sometimes there's a little confusion at first or something we need to do to set up your git config on a new computer.