Practice creating pull requests with a list of playlists. (With thanks to https://github.com/bhargav794/hacktoberfest-practice-music-playlists)
Create an account on Github, and make sure you have the following installed:
Have a look at Github's Fork & Pull Workflow for Git Beginners for an overview of this process. However, here is a simple list of things to do: (In particular, checkout 'Updating your Fork' for information on mking sure you push the latest version of the repo)
- Fork this project
- Open Git Bash
- Clone your forked project
git clone https://github.com/<YOUR-USERNAME>/Practice-PR-Playlists
- Make your changes to the
playlist.md
file - Add the URL of your spotify playlist
- Add the file to the staging area:
git add .
- Commit your changes. Include a commit message to describe your commit:
git commit -m "YOUR COMMIT MESSAGE"
- Push the changes to your forked version.
git push origin main
- Go to the original project (i.e . my project!) on GitHub and create a pull request.
- Fork this repo.
clone
your forked copy of the projectgit clone https://github.com/<YOUR-USERNAME>/Practice-PR-Playlists
- In git bash, change the working directory to inside the cloned project:
cd Practice-PR-Playlists
- Add a reference to the original (i.e. my) repository:
git remote add upstream https://github.com/markdoughty/Practice-PR-Playlists.git
- Check the remote repositories
git remote -v
- Use
git pull
to make sure the upstrwam remote repository (i.e. mine) is up to date with your fork:git pull upstream main
- Create a new branch in your repository:
git checkout -b <YOUR-BRANCH-NAME>
- Open
Playlist.md
in a code editor like VSCode or notepad++ and make your changes. To add a Spotify playlist reference, use this markdown syntax:[playlist name](Spotify URL of the playlist)
- Add your files to your staging area (track your changes):
git add .
- Commit the files in the staging area:
git commit -m "YOUR COMMIT MESSAGE"
push
the committed files to your repository (i.e. your forked version):git push -u origin <YOUR-BRANCH-NAME>
- Create a
pull request
. Select 'Pull Requests > Create Pull request'. Please ensure you compare your branch to the branch of the repository (i.e. mine) to which you want to make a pull request. - Wait to see whether it is merged into the main branch!