Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 OPEN SOURCE


  How to undo git changes?

When using git for version control, there is frequent need on undoing commits due to some unexpected changes. This post will introduce how to undo changes with git command in different cases.Undo commitA common undo case is that some commit needs to be reverted as the commit contains error. In this case, the code is already committed. The command to revert the commit isgit revert HEADThis command will add new a commit to the existing head to undo the previous commit. It will not change the previous commit history, hence there is no risk of losing changes.If need to revert multiple commits, run...

3,327 0       GIT CHECKOUT GIT REVERT GIT RESET GIT


  A tutorial on Github Actions

Github Actions is a CI/CD service created by Github. It aims to make it easy to automate all software workflows, now with world-class CI/CD. Build, test, and deploy code right from GitHub. It was launched in October 2018 and was officially available to all users in November 2019.This post will give an introduction of Github Actions and explain how it works.What is Github ActionsNormally Continuous Integration includes some steps, fetching code, running test, sshing into remote server instance, deploying code/binary on remote server etc. They are called actions in Github Actions. Lots...

13,016 0       CD CI GITHUB ACTIONS GITHUB


  A simple example of git bisect command

git bisect is a very powerful command for finding out which commit is a bad commit when bug occurs. The rationale behind this command is that it pin locates the bad commit by divide and conquer. It divides the commit history into two equal parts, then determines whether the bad commit is at the first half or at the other half. This process will continue until the bad commit is located.Here is a really good example created by bradleyboy, this is a simple git repository which demonstrates a bad commit in the index.html. First, please clone the repository into local.$ git clone git@gith...

18,329 2       GITHUB GIT GIT BISECT


  Resolve git issue git@github.com: Permission denied (publickey)

Sometimes when clone a remote repository from github.com, you may see below error.D:\Project\Playground\GitBisect>git clone git@github.com:bradleyboy/bisectercise.gitCloning into 'bisectercise'...git@github.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.The issue occurs when there is no key on your machine which is associated with your github account. To fix the issue, please go to ~/.ssh and check whether you have correct private and public key generated and stored and associate th...

17,807 0       GITHUB PERMISSION DENIED GIT PUBLIC KEY


  Do We Really Need Wi-Fi in Schools?

Why do I think Wi-Fi is needed in schools? Times have changed.  We need to adapt to the changes. I believe the internet is probably the most important tool available today. The world- wide web contains information about anything you could possibly want or need to know.  It allows an even playing field for people who don’t have the information and knowledge to be able to get it. Students today are the future.  They need to be able to access as much knowledge as possible to become successful and make the world a better place. Access to the internet makes a world of differenc...

908 0       EDUCATION WIFI SCHOOL COMPUTERS


  Install and configure git plugin in Eclipse

When developing using IDE, it's always a good experience if everything can be done in the IDE including development, testing and version control. This also applies to Eclipse. In this post, we will show the process of installing and configuring git plugin in Eclipse. The pre-requisite is that you have git installed on your local machine. The detailed steps for installing and configuring git plugin are below.1. Installing Git pluginInstall using "Install New Software..." menu. a. Click Help -> Install New Software...b. Click Add... and add below informationName: EgitLocation:&...

37,037 0       GIT PLUGIN GITHUB ECLIPSE


  Fix SSL 'alert protocol version' issue while git clone remote repository

Git provides ways to securely connect to remote repository and clone remote repository to local machine. This post will teach you how to fix the "SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version" issue while cloning a remote repository.The issue would look like:If this error occurs, it is most probably caused by out of date git version being used.To improve its security awareness, some weak cryptographic algorithms have been disabled and all git clients should upgrade to latest ones to accomodate to the new security requirements. In the above error case, you should first check what git vers...

7,544 0       GIT GIT CLONE GIT SECURITY


  Ways to undo wrong Git operations

While using Git to version code, programmers would inevitably perform some invalid operations which are not expected. Sometimes it's difficult to deal with this kind of awkward situations. If the programmer chooses to undo the operation, the programmer needs to bear the risk of deleting something which is not supposed to be deleted if the undo is done improperly. If the programmer leaves it as is, the file needs to be updated again manually with a new commit. In this post, we will try to provide advice on how to properly undo wrong operations performed using Git for some scenarios. G...

3,041 0       GIT RESET GIT COMMIT GIT