Advertisements I am creating a git tutorial for beginners. I’m tracking my progress such as notes, beamer slides and exercises in a git repo (repo A). I also want to create a sample git repository (repo B) with an educational commit history and ideally nest it inside repo A. I want to be able to… Read More Which workflow should I use for this nested repo situation?
Advertisements I am using two git accounts on the same Mac, one for Work and one for Personal dev. I used to use ssh access for the accounts. I generated the SSHs and added them to the config file. I am using the this config file Host x-GitHub HostName github.com User x PreferredAuthentications publickey IdentityFile… Read More ERROR: Permission to xyz/private-repo.git denied to x
Advertisements I want to revert back to a previous commit and make it my new default branch in a clean way. Ignoring any future commits. this what I did: git checkout <commit-hash> git branch new-main How to make the new-main branch the default branch and make the development continue from there? >Solution : IF (not… Read More How to revert back to previous commit and make it the default branch Ignoring any further commits
Advertisements Git push asking for username and password I recently had a project setup on my home system but I had already created the repo on Github (dont ask me why, I’m just learning). I ran git init and added the files to the staging area and commited the new image folder I had added… Read More Git asking for username and password
Advertisements I’m curious about whether it’s acceptable to use the colon (:) symbol in GitHub commit messages and whether there are any potential drawbacks to doing so. >Solution : Yes, it is possible to use a colon as well as any other special characters. GitHub doesn’t restrict it in commit messages.
Advertisements I have a Git repository containing a folder with Git files, but I’m not certain if the repository was cloned from a specific URL on GitHub. Is there a Git command that can help me identify the URL that the repository was cloned from, if any? >Solution : Yes, there is a Git command… Read More How to Identify the GitHub URL of a Cloned Git Repository Using Git Command?
Advertisements help needed here.. does anyone know how to check the changes of an old git branch that has been merged? Asking this because i want to learn from previously merged branch by others. I switched to the old branch and did a git diff HEAD^ HEAD and there was no result. >Solution : As… Read More How to check changes made from an old git branch that has been merged
Advertisements Context After having applied this solution, I noticed I got rate limiting after calling the function 5 times in a span of +-3 minutes. I expect this may have been because someone in the location/ip in which I was testing the function, was already consuming some of the API bandwith. So I added a… Read More Check if public GitHub repository exists without using api, using bash?
Advertisements I’m having some trouble with git rebase. I have forked a public repository. In my fork I have a master branch and a feature branch. I have developed and committed code in feature and now I create a pull request directly into the upstream repository. But, by the time I am ready to create… Read More Can't push to a repo after rebase
Advertisements How can I setup the git in wsl? I cannot get it setup Tried installing and setting but getting error fatal: unable to access ‘https://github.com >Solution : Download WSL and Ubuntu from Windows Type sudo apt update Type sudo touch /etc/resolv.conf sudo chmod 777 /etc/resolv.conf sudo printf ‘nameserver 188.8.131.52\nnameserver 184.108.40.206’ > /etc/resolv.conf Install git… Read More Setup git in wsl2 windows