base
is UpdatedThis guide explains how to sync your repository with the latest changes from the
attogram/base
template repository.
This is for repositories that were created using the “Use this template” button
on GitHub.
This process assumes that you have not previously added the base
repository
as a remote. If you have, you can skip to the fetch
and merge
steps.
There are two ways to do this: an easy method using the GitHub web interface, and an advanced method using the command line on your local machine.
This method is recommended if you are not familiar with the command line or do not have Git installed on your machine. It uses GitHub Codespaces, which provides a development environment that runs in your browser.
Navigate to Your Repository: Go to the main page of your own existing repository on GitHub.
base
as a remote (if you haven’t already):
This tells Git where to find the attogram/base
repository.
git remote add base https://github.com/attogram/base.git
base
:
This downloads the base
repository and merges it into your project.
git fetch base
git merge base/main
<<<<<<<
,
=======
, >>>>>>>
).This method is for users who are comfortable with the command line and have Git installed on their local machine.
base
as a Remote (if you haven’t already)First, you need to add the base
repository as a remote to your local Git
repository.
This allows you to fetch its branches and history.
Open your terminal, navigate to your project’s root directory, and run the following command:
git remote add base https://github.com/attogram/base.git
base
Next, fetch the base
repository’s history and merge its main
branch into
your project’s main branch.
git fetch base
git merge base/main
It is highly likely that you will encounter merge conflicts. To resolve them:
git status
to see a list of files
with conflicts.<<<<<<<
, =======
, >>>>>>>
).git add
.
git add .
git commit
After the merge is complete, push the changes to your repository and create a Pull Request.
git push origin your-branch-name
If you only want to incorporate a small part of the base
repository, like a
specific workflow or configuration file, you can simply copy and paste it into
your own project.
For example, you can copy the contents of the
.github/
directory to
get the latest GitHub Actions workflows.
This method is simpler than a full merge, but you will need to manually update
the files if you want to get future updates from base
.