Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PhirePhly/c73410a449fd2d04829541ddfc7a7004 to your computer and use it in GitHub Desktop.
Save PhirePhly/c73410a449fd2d04829541ddfc7a7004 to your computer and use it in GitHub Desktop.
Making an update to the AlmaLinux mirror database
# Fork the Alma mirror repo into your own Github account, then 'git clone' it to your local computer
# Then do this just one time to set up the remote pointer to the main Alma repo in your dev box clone
[kenneth@node2 alma-mirrors]$ git remote add alma https://github.com/AlmaLinux/mirrors.git
# Do the rest of this every time you need to submit a change
[kenneth@node2 alma-mirrors]$ git fetch alma
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 21 (delta 15), reused 14 (delta 12), pack-reused 0
Unpacking objects: 100% (21/21), 5.95 KiB | 609.00 KiB/s, done.
From https://github.com/AlmaLinux/mirrors
2d8d379..222096a master -> alma/master
[kenneth@node2 alma-mirrors]$ git reset --hard alma/master
HEAD is now at 222096a Merge pull request #1059 from starburstservices/master
[kenneth@node2 alma-mirrors]$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 5 and 1 different commits each, respectively.
(use "git pull" if you want to integrate the remote branch with yours)
nothing to commit, working tree clean
[kenneth@node2 alma-mirrors]$ vim mirrors.d/forksystems.mm.fcix.net.yml
[kenneth@node2 alma-mirrors]$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 5 and 1 different commits each, respectively.
(use "git pull" if you want to integrate the remote branch with yours)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: mirrors.d/forksystems.mm.fcix.net.yml
no changes added to commit (use "git add" and/or "git commit -a")
[kenneth@node2 alma-mirrors]$ git add mirrors.d/forksystems.mm.fcix.net.yml
[kenneth@node2 alma-mirrors]$ git commit -m "Updated forksystems mm"
[master 4ae3aa2] Updated forksystems mm
1 file changed, 1 insertion(+), 1 deletion(-)
[kenneth@node2 alma-mirrors]$ git push --force
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 373 bytes | 373.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To github.com:PhirePhly/mirrors.git
+ ad53221...4ae3aa2 master -> master (forced update)
# Now go to your fork of the repo on Github, and Collaborate -> Pull Request to send the change back to Alma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment