From b9b0b9a61f910d9adb2924291bfc8fd96e85f64e Mon Sep 17 00:00:00 2001 From: ShivamParihar Date: Wed, 25 Mar 2020 15:35:29 +0530 Subject: [PATCH 1/2] shivam pull request --- shivam work.txt | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 shivam work.txt diff --git a/shivam work.txt b/shivam work.txt new file mode 100644 index 0000000..6cc8841 --- /dev/null +++ b/shivam work.txt @@ -0,0 +1,57 @@ +SEE TO DOWNLOAD - https://github.com/ShivamParihar/first-project.git + +first write the commands- +git config --global user.email "youremail@gmail.com" +git config --global user.name "yourname" + +1) git clone (url of the project) +->It is used to clone the project in our system on the current directort. +ex - git clone https://github.com/ShivamParihar/ShivamParihar.github.io.git + +Now open the project folder (see master) + +2)git status +->It tells us that we have untracked files(files which are at system but are not upladed to online github account). + +3)git add +->It uploads the given file to the online github account. +use git add . (to add all the untracked files) +ex- git add style.css + git add index.html + +4)git commit +->It commit the changes we did on the project. (Also we can pass message which will we shown on the github) +ex- git commit -m "uploading new files" + +5)git push +->After commiting the changes we atlast the tell the github about the changes and the files has now been pushed to the repository. + +6)gir pull +->It is used to download and replace the latest files from the project(if someone else has made any changes) onto the same folder. + +7)git branch +->List branches (the asterisk denotes the current branch) + +8)git branch [branch name] +->Create a new branch + +9)git branch -d [branch name] +->Delete a branch + +10)git checkout [branch name] +->Switch to a branch + +11)git checkout -b [branch name] +->Create a new branch and switch to it. + +12)git checkout - +->Switch to the branch last checked out. + +13)git merge [branch name] +->Merge a branch into the active branch. + +14)git merge [source branch] [target branch] +->Merge a branch into a target branch + +for more details check... +for more details check.... From 1549be0319ba33a7e0263ce7a15b74bd8acc4137 Mon Sep 17 00:00:00 2001 From: ShivamParihar Date: Fri, 27 Mar 2020 02:46:04 +0530 Subject: [PATCH 2/2] adding something --- shivam work.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/shivam work.txt b/shivam work.txt index 6cc8841..bcf7db8 100644 --- a/shivam work.txt +++ b/shivam work.txt @@ -50,6 +50,7 @@ ex- git commit -m "uploading new files" 13)git merge [branch name] ->Merge a branch into the active branch. +$$ 14)git merge [source branch] [target branch] ->Merge a branch into a target branch