This is a fan website dedicated to all the enthusiasts of Hogwarts Legacy. Here, you will find a collection of information, news, and resources related to the game, allowing you to immerse yourself in the magical world of Hogwarts.
If you're interested in checking it out, here's the link for you Wizard Portal.
This guide will walk you through the steps to create a new branch in a GitHub repository, add files, commit changes, push to GitHub, create a pull request, and merge it into the main branch (usually main) using the terminal and git commands from VS Code.
Before you start, make sure you have the following prerequisites:
- Git
- Visual Studio Code (VSCode)
- Extension VSCode : Github Pull Request and Issue
-
Open the GitHub repository in VS Code by using the "Clone Repository".
-
On VS Code open the Terminal and Run the following command to create a new branch:
git branch -c local-branch
-
Replace
local-branch
with an appropriate name for the branch you want to create. -
Ensure that you are in correct working branch by Running this command :
git branch
-
If you are still in main branch, change your branch to the local-branch by running this command:
git checkout local-branch
-
Create or copy the files you want to add to the repository in your local working directory.
-
Go back to the terminal and run the following command to add the file to the list of changes:
git add file-name
Replace
file-name
with the name of the file you want to add. If you want to add all files at once, use the command :git add .
-
Next, run the following command to commit the changes:
git commit -m "Descriptive commit message"
Replace
"Descriptive commit message"
with a descriptive message that explains the changes you made.
- After committing the changes, run the following command to push the changes to the GitHub repository:
git push origin head
push origin head
means that the changes were pushed to the GitHub repository in current working branch. It prevents you from pushing to the wrong remote branch by accident.
-
First you need to install the extension : Github Pull Request and Issue into your VS Code.
-
Open the extension and fill the Title and Description form based on your needs. Then click Create.
-
A new pull request will be created, you need to assign the task to someone in your organization or you can assign that to yourself.
-
Make sure you have clean breanch without conflict. You continue by click Merge Pull Request and then click Create Merge Commit
-
Once you have merged the branch, you can delete the branch by clicking Delete branch
Congratulations! you have been successfully merged local-branch
into main
branch on your Github Repository.
This documentation will guide you through the process of registering with Netlify, connecting it to your GitHub repository, enabling automatic deployment, and changing the domain. Follow the steps below to complete the task.
- Open https://www.netlify.com/ in your browser.
- Click the "Sign up" button to create a new account or "Login" if you already have the account. You can choose various options for creating a new account with email, gitlab or bitbucket account.
- Follow the provided registration steps.
- After signing up, you will be directed to the Netlify dashboard.
- In the Netlify dashboard, click the "Add new site" button.
- Select "Deploy with GitHub".
- Grant the necessary permissions to access your repository.
- Choose the repository you want to connect.
- Configure the deployment settings according to your needs, such as the branch to deploy and the build command to execute.
- Click the "Deploy site" button to initiate the initial deployment process.
- Once your repository is connected, Netlify will automatically trigger deployments whenever changes occur in your GitHub repository.
This guide provides step-by-step instructions on how to configure a custom domain. Before proceeding with the steps below, make sure you have purchased a custom domain from Niaga Hoster or any other domain registrar.
- Open https://www.niagahoster.co.id/ in your web browser.
- Look for the "Domain" feature on the Niagahoster homepage.
- Enter the domain name you desire in the domain search box. Example: yourdomainname.com.
- Click the "Check now" button to check the availability of the domain.
- If the domain you want is available, select it and click the "Choose" button.
- Niagahoster will display additional information about the selected domain, such as price and additional options.
- Set the domain rental period according to your preference.
- After you click "Choose" button you will be proceed to the payment process.
- In the payment page, select the payment method you prefer (such as bank transfer, credit card, or e-wallet).
- Fill in the required payment information.
- Double-check your order and ensure that all details are correct.
- Once you're ready, click the or "Checkout Now" button to complete the purchase.
- Follow the further instructions from Niagahoster to finalize the payment process.
- In the Netlify dashboard, select the site for which you want to change the domain.
- Click the "Domain settings" button.
- Choose the "Add custom domain" option.
- Enter the domain you want to use.
-
Open https://www.cloudflare.com/ in your web browser.
-
If you don't have an account, sign up for a new account on Cloudflare.
-
Add your domain to your Cloudflare account.
-
Cloudflare will provide you with several DNS configuration details that you need to set up.
-
In your domain registrar's service, change the nameservers of your domain to the Cloudflare nameservers provided.
-
Return to the Cloudflare dashboard and select the newly added domain.
-
Configure the DNS by adding the required DNS records according to Netlify's instructions. For example, add a CNAME record to point the domain to Netlify.
Once the DNS configuration is complete, you will receive email from Cloudflare confirms that your domain has been successfully activated.
Cloudflare will start managing the DNS for your domain. Make sure to follow the specific instructions provided by Cloudflare as the steps may vary slightly depending on their interface.
The process will take a few minutes to complete or in 24 hours maximum.