From be13646a102fefd9f34977bd90b85e7f8c91b955 Mon Sep 17 00:00:00 2001 From: Lungsang <102473656+Lungsangg@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:07:01 +0530 Subject: [PATCH] Update README.md --- .github/workflows/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 4932729f0f..22268d1fc5 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -39,3 +39,9 @@ - use git cherry-pick commit-hash (eg: e2276f5c01a7b2eb1623131664abbe4cb02bb52d) - rebase from master to test-staging (all the commits are up to date and ahead commits are on top of it) - we can cherry pick commit from production-master to master too + +### Some useful git command + +- git fetch (fetch the newly created branch in remote) +- git rebase (source branch) (we should apply it on the target branch. Eg: if need to rebase from master to staging, checkout staging branch and git rebase master.) +- git diff origin/branch name (check the commit difference b/w origin i.e remote branch and current branch i.e local branch)