From 06ba0e9e09bde1d48c998b3bf4ace5bec07d1907 Mon Sep 17 00:00:00 2001 From: Chandra Mohan Jha Date: Tue, 31 Dec 2019 13:18:08 +0530 Subject: [PATCH] initial doc --- git.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 git.md diff --git a/git.md b/git.md new file mode 100644 index 0000000..26e25ef --- /dev/null +++ b/git.md @@ -0,0 +1,14 @@ +# Git + +` git init ` Initialize git +` git status ` Get status +` git add ` add file to version control +` git add . ` add all files to version control +` git commit [-m "commit message"] ` commit the changes to version control +` git log ` get the log related to git i.e. version committed +` git branch ` get the branches present locally +` git checkout ` checkout the branch +` git checkout -b ` create a new branch and check it out +` git merge ` merges the source branch into currently checked out branch +` git remote add origin ` add remote repo uri +` git remote -v ` lists the remote URIs