Adding Changes to a Preexisting Repo
Prequisites
git
or GitBash
installed on your machine
Part 1 - Cloning a Preexisting Project
- From a browser, navigate to the URL of the GitHub repository you would like to clone.
- Copy the URL of the repository your clipoboard.
- From a terminal, do the following:
- Create a
dev
directory in your home directory.
- Change directories to
~/dev
- Clone project into
~/dev
directory and alias project directory as my-project
git clone {repository_url} my-project
Part 2 - Adding Changes to Preexisting Git Repository
- navigate to the root directory of the project on your local machine
- add changes
- commit change
git commit -m 'update message'
- push changes to web
git push -u origin master
- Refresh the webpage to ensure your changes are visible.