This is a README file. It is automatically displayed on the main page of a repo on GitHub. READMEs are typically used to introduce a project.
Go to https://www.github.com/ and follow the instructions to make an account, if you do not already have one.
Go to https://desktop.github.com/download/ and download the version of GitHub Desktop for your device.
- Click "Fork" by the top right of the GitHub repo web page.
- Click the green "Create Fork" button.
- Open GitHub Desktop and sign in.
- At the top of your screen, go to File > Clone Repository.
- Select your fork of this repo.
- Click the blue "Clone" button.
- Select "For my own purposes".
- Click the blue "Continue" button.
- In GitHub Desktop, navigate to the top of screen and click "Current Branch: main".
- Click "New Branch".
- Give the branch a name.
- Click the blue "Create Branch" button.
- Click the blue "Switch Branch" button.
- At the top of your screen, go to Repository > Open in Visual Studio Code. Yours may differ if you do not have Visual Studio Code.
- In VS Code, open the README.md file.
- Write something in the space indicated below.
- Save your changes.
- Open GitHub Desktop.
- You will see changes in the left menu.
- Click the checkmark beside README.md to add it to the staging area.
- Write a commit message in the bottom left.
- Click the blue "Commit 1 file to YOUR_BRANCH_NAME" button.
WRITE SOMETHING HERE -> here 2323
- In Github Desktop, go to the top of the window and click "Publish Branch".
- In the GitHub remote repo web page, click Pull Requests at the top of the page.
- Click the green "New" button.
- Click "base repository" and select your fork the workshop repo.
- Click "compare" and select the branch you made previously.
- Click the green "Create pull request" button.
- Write a description of your pull request and click the green "Create pull request" button.
- Click the green "Merge pull request" button.
- Click the green "Confirm merge" button.
- In GitHub Desktop, navigate to the top of screen and click "Current Branch: YOUR_BRANCH_NAME".
- Click "New Branch".
- Give the branch another name.
- Click the blue "Create Branch" button.
- Click the blue "Switch Branch" button.
- At the top of your screen, go to Repository > Open in Visual Studio Code. Yours may differ if you do not have Visual Studio Code.
- Create a new file in VS Code by right clicking in the left menu and selecting "New file.
- Name this file with the suffix
.txt. - Go to GitHub Desktop.
- Click the checkmark beside your file to add it to the staging area.
- Write a commit message in the bottom left.
- Click the blue "Commit 1 file to YOUR_BRANCH_NAME_2" button.
- In GitHub Desktop, navigate to the top of screen and click "Current Branch: YOUR_BRANCH_NAME_2".
- Select the main branch.
- Click the blue "Switch Branch" button.
- Navigate to the top of screen and click "Current Branch: main".
- At the bottom of the popup menu, click "Choose a branch to merge in to main".
- Select the second branch we made.
- Click the blue "Create a merge commit" button.
- Open the remote reposistory web page.
- Click the pencil icon to edit the README.
- Check this checkbox by putting an x between the brackets: [ ]
- Press the green "Commit changes..." button.
- Open GitHub Desktop and click "Pull origin" at the top of the screen.
- In GitHub Desktop, click "History" in the left menu.
- Right click on the commit where you forked this workshop repo.
- Select "Checkout commit".
- Click the grey "Checkout" button.
- Now that we are on an old commit, let's make a new branch off of this old commit.
- Open your working directory in VS code and make a DIFFERENT change to the part where we had you write something.
- Add the change and commit it.
- Push the changes by clicking "Publish Branch".
- Open the remote repo web page, and make a pull request into your fork.
- You will not be able to automatically merge (*merge conflict*), but create the pull request anyway.
- Click the grey "Resolve conflicts" button.
- Click either "Accept currrent change" or "Accept incoming change".
- Click "Mark as resolved" by the top right.
- Click the green "Commit merge" button in the top right.
- We can now click the green "Merge pull request" button and "Confirm merge".
You are now a GitHub GOAT, but there's still more to learn...
- GitHub First Contributions => Learn how to start contributing to all of the amazing open-source projects available on GitHub!
- Git Cheat Sheet => Save this for whenever you need a quick reminder!
