Posts

Showing posts from February, 2021

Create a watch dog script for Local Git Repository to Pull commits !

 How to create a watch dog scrip for a git folder in your local computer? Need: We clone a public repository to our local computer and executing the code from there. When doing  commit to the pull request done in the upstream master, in each and every time we need to pull the same manually to our local repository.  To solve the issue, we can create a script and configure the same to the start up options will update the local repository with respect to  the parent repository changes. Clone a repository to a local folder using the following commands In Linux Terminal, run the following code: git clone https://<link_to_the_GitHub_repository> Now what i doing is,  am renaming the cloned repository to 'git_folder' Change the directory to the 'git_folder' using cd command  Run in Linux terminal: nano script_run.sh                        #Save this code as script_run.sh (Can customise the ...