Updated: 2023-05-24 A simple guide to use CI/CD and Code coverage. For CI tasks will be done using GitHub Actions. Some examples of yaml files for CI tasks can be found here eg. check-standard.yaml file. CI/CD This is a simple process to implement CI/CD using GitHub Actions with usethis package.
Read MoreGit Upstream
Updated: 24.02.2023 When you forked a repo then your copy of forked-repo in your Github profile will be referred to as origin while upstream refers to the real origin where the repo was forked from. If you cloned a repo then you will have local copy of the origin repo.
Read MoreGit Worktree
Updated: 01.04.2022 Normally I created a new branch when I intent to do some changes to the master branch. But the problem is I have to stash changes when switching back and forth. To avoid this create worktree for the branches you want to work seperately.
Read MoreSSH-key with Git on Windows
Updated: 2023-03-31 Generally, these are what I did: Install git-with-openssh Create SSH-key Add SSH-key to ssh-agent Create ~/.bashrc for auto-launching ssh-agent Common problems Netwrok folder not accessable Unable to push to origin with this error message. ssh: Could not resolve hostname personal: Name or service not known fatal: Could not read from remote repository.
Read MoreGit Multiple account
config file Create a config file in your ~/.ssh folder that will manage your accounts. Host personal HostName github.com User git IdentityFile ~/.ssh/id_rsa_personal Host work HostName github.com User git IdentityFile ~/.ssh/id_rsa_work When cloning a new repo then you only have to specify hostname to your Git account.
Read More