Skip to content

Instantly share code, notes, and snippets.

View SauravDas90's full-sized avatar
🏠
Working from home

Saurav Das SauravDas90

🏠
Working from home
View GitHub Profile
@SauravDas90
SauravDas90 / install_software.sh
Created April 14, 2021 17:17
script to install common softwares after ubuntu installation
#! /bin/sh
# run the script with as sudo
echo "Begin installing softwares !"
sudo apt-get update
echo "Starting with Runtimes !"
@SauravDas90
SauravDas90 / git-tips.txt
Created September 23, 2018 12:30
Contains most useful git snippets
1. How to merge remote master to local branch
git fetch
git rebase origin/master
In a nutshell:
git merge branchname takes new commits from the branch branchname, and adds them to the current branch. If necessary, it automatically adds a "Merge" commit on top.
git rebase branchname takes new commits from the branch branchname, and inserts them "under" your changes. More precisely, it modifies the history of the current branch such that it is based on the tip of branchname, with any changes you made on top of that.