• support[@]kurinchilion.com
  • +1 (888) 666-4252

Tags

Git: Display log of commits with author name and date in single line

Dec 20, 2022 - by kurinchilamp / Linux Server / Post Comment
To display the git logs in a single line, we use the command $ git log --oneline To display git logs in a single line with commit id, author name and date we can use $git log --pretty=format:"%h%x09%an%x09%aI%x09%s" For more variations of the command, you can refer to kernel.org.
Continue Reading

Git: How to update a forked repository from a main Git repository?

Nov 30, 2022 - by kurinchilamp / / Post Comment
i) Add an upstream to the remote github URL $ git remote add upstream <GIT_REPO_URL> ii) Retrieve all branches from upstream $ git fetch upstream iii) Merge the repo to your local branch $ git merge upstream/master iv) Now, push the changes to your remote forked repository $ git push origin master
Continue Reading

How to setup AWS SAM to run locally via Git Bash?

Nov 17, 2022 - by kurinchilamp / / Post Comment
Once AWS SAM CLI is installed/setup in your system, you will need to give a reference to sam.cmd file. In windows, you can give an alias to the folder where SAM is setup alias sam="/c/Program\ Files/Amazon/AWSSAMCLI/bin/sam.cmd" In linux, $ vi ~/.bashrc alias = sam="sam.cmd" $ source ~/.bashrc
Continue Reading

Git sparse checkout or partial checkout

Sep 21, 2022 - by kurinchilamp / / Post Comment
  There are scenarios when you are contributing to a subset of a very large project. Instead of downloading the entire project, you may want to bring down a copy of ONLY the needed folders or files (to save download time, space ...) Git allows partial cloning which allows Git to function without having a complete copy of the repository. Follow the below steps to try out Git's sparse-checkout feature. (more…)
Continue Reading

Git: How to change the remote URL of a repository?

Sep 16, 2021 - by kurinchilamp / / Post Comment
Let's first display the remote URL that is set for the repository. $ git remote -v origin https://github.com/USER/my-repo-main.git (fetch) origin https://github.com/USER/my-repo-main.git (push) Option 1: If we want to change the URL that is set to that of a different user USER2, then we can do that by issuing the command $ git remote set-url origin https://github.com/USER2/my-repo-main.git Option 2: Another workaround for this task is to edit .git/config file and replace the url present in the file to that of the new git URL. $ cat .git/config [core] ..... [remote "origin"] url = https://github.com/USER/my-repo-main.git $ sudo vi .git/config [core] ..... [remote "origin"] url = https://github.com/USER2/my-repo-main.git
Continue Reading

Git: How to add an untracked file back to the repository?

Oct 02, 2017 - by kurinchilamp / / Post Comment
If you want to add certain files that was previously removed from Git repository, follow the steps given below. STEP 1: remove the file reference in .gitignore STEP 2: remove the cached reference from git. $ git rm --cached sampleconfig.txt (more…)
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.