GitHub

When using Git on a Mac, open up terminal and navigate to the folder that you want to house all of your git files.
      >> cd Desktop/GitProjectFolder

Next, clone your current git repository into this folder so that everything is up to date.
     >> git clone https://github.com/TQuartararo/EngineeringProjects.git

Now that everything is up to date, you can drag new files from your computer into the project folder on your desktop. Next, add the files using the git add command.
     >> git add <newly dragged in file>

If all desired changes have been made, commit them.
     >> git commit -m "type a message documenting the change"
     *If I don't use the -m flag followed by a message, terminal freezes

Finally, push the changes
     >> git push
    You will be prompted for your GitHub username and password, and then the files will be added to your git repository!


No comments:

Post a Comment