Meeting notes from longer GitHub meeting (4/11/2024)
Present: Dave Bi, Siobhan O’Farrell, Aidan Heerdegen (left at 4pm), Chris Bull
@sofarrell @dhb599 @Aidan @cbull
Meeting scope: assist Dave and Siobhan get the model code they have been using onto GitHub to facilitate ESM 1.6 release.
Summary:
-Dave Bi (DaveBi) added to ACCESS-NRI GH organisation
-Dave Bi shown how to enable 2 FA authentication via text messaging (works!)
-Dave Bi is currently making changes to ESM1.5 code, decided to focus on cice4 for the moment (will need to do MOM too eventually).
-Showed Dave how to make a local clone of git clone https://github.com/ACCESS-NRI/cice4
(note this does not clone the other branches), origin
is a shorthand name for the remote repository that a project was originally cloned from. git branch -a
lists all the remote branches, noting
remotes/origin/access-esm1.5
is the branch you likely want. Hence git checkout origin/access-esm1.5 -b my-esm1.5
will create a local copy of this branch the string after ‘-b’ will be the local name for this branch.
-git status
is very useful for describing the state of the current working directory in terms of the HEAD (“current view”) repository
-discussed how git works in terms of staging areas, adding then committing, then pushing changes. Here is a workflow:
git add filename
git status
git commit -m “This is my 1st commit try”
git push -u origin my-esm1.5
-git remote -v
-git help COMMAND
very useful for getting up the help pages where COMMAND
is substituted for a git command (e.g. commit
)
-On last point for pushing to the remote, Dave Bi’s credential were not correct.
Next actions:
-Dave Bi will try to reset password (suggest username of either davebi
or DaveBi
) and then push the changes we discussed. See suggested links below.
-Dave Bi will then copy in changes that he’s made to the repository and repeat the above process to push them onto GitHub, he will notify us or let us know if he has any trouble.
Suggest: Dave Bi sets his username and password (see second link below)
Links: