Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOC-task1-task2-Ritabrata #20

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions commit1_Learner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
commit1_Learner

45 changes: 45 additions & 0 deletions commit1_OSOC.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
###################### 10 Git commands and their usage #############################################

1.Git Clone : It is used to download existing source code from a remote repository. It makes an identical copy of the project in a repository and saves it in the computer(local machine)

git clone <https://repositorylink>

2.Git Branch : We can use the git branch command for creating, listing and deleting branches. Branching is super important for developers to work in parellel on the same project.
git branch <branch-name>

3.Git Checkout : This is used to switch from one branch to another. It can also be used to checkout files and commits

git checkout <branch-name>

4.Git add : When we create, modify or delete a file, these changes will happen in our local and won't be included in the next commit. Git add command to include the changes of a file or files into our next commits

git add . -> TO add all everytthing
git add <filename> ->To add a particular file

5.Git commit : The git commit command captures a snapshot of the project's currently staged changes. Committed snapshots can be thought of as “safe” versions of a project

git commit -m "<your message>"

6.Git Push : After committing your changes, the next thing you want to do is send your changes to the remote server. Git push uploads your commits to the remote repository.

git push <remote> <branch-name>

7.Git status : The Git status command gives us all the necessary information about the current branch.

git status

8.Git merge : When you've completed development in your branch and everything works fine, the final step is merging the branch with the parent branch . This is done with the git merge command

Before merging, its important to checkout to the main branch

git checkout main
git merge <branch-name>

9.Git log : It helps us read a history of everything that happens to a repository. The git log command displays all of the commits in a repository’s history
It displays SHA,author,date and commit message of each commit in our repository

10. Git revert : This allows us to undo our commits. To undo a commit, we first have to find its hashid. We can do this by using "git log --oneline"

git log --oneline
git revert <hashid of the commit>

1 change: 1 addition & 0 deletions commit1_main.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
commit1_main
1 change: 1 addition & 0 deletions commit2_Learner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
commit2_Learner
103 changes: 103 additions & 0 deletions log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
commit ef2a31be6a26e6f5d4aedb50d6629efa90f989e2
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:57:58 2022 +0530

ritabrata.txt added

commit 5cf2dfd6b43ef2edf45ebd68a5d4c72bee169ba8
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:56:08 2022 +0530

screenshots added

commit a4379df9f0cafa68580d0cf1dbf2a9ba2f0a27a4
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:48:57 2022 +0530

commit1_OSOC.txt added

commit a8746bdf4fdc74a3e5e50a4524e826a9524a082e
Merge: 477fc6f 6d83caa
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:44:50 2022 +0530

Merge branch 'Learner'

commit 6d83caaef82c61bf9278319f355e862b68a8f63c
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:44:02 2022 +0530

commit2_Learner.txt added

commit 477fc6f27e41e032cba70bb80b04fddd0bd07738
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:43:05 2022 +0530

commit1_main.txt added

commit 51de29796e6e49dc0e4d3360236fd9d9e008dbf6
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:42:21 2022 +0530

commit1_Learner.txt added

commit a5e205effb37258fbfa25ad8ada92f993e32a4a5
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:36:46 2022 +0530

Delete commit2_Learner.txt

commit 3c180de8b0f29c33095887d9352aa59bd1a5e559
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:36:38 2022 +0530

Delete commit1_OSOC.txt

commit e4f5b9d227cff924692e58a1851303106e2843a2
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:36:27 2022 +0530

Delete commit1_Main.txt

commit 39d42bef80d35287bcb92827c92438b8adaa1a52
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:36:16 2022 +0530

Delete commit1_Learner.txt

commit 1ec26fbea9f8a21fa4b60bde92fca2e21d8b38ff
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 19:17:52 2022 +0530

commit1_OSOC.txt added

commit bfb57e0933c6bf6f12d6ad5ae4eca97e91a130cd
Merge: 307fd9f 6fc4b93
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 18:45:27 2022 +0530

Merge branch 'Learner'

commit 6fc4b93903be5cc16cf719c5ed35ff7f4c3cc984
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 18:44:56 2022 +0530

commit2_Learner.txt added

commit 307fd9fa9828fd0ff00179c1157e2cd51134fe6f
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 18:43:54 2022 +0530

commit1_main.txt added

commit d3f7c7886638b1172a0fb319ef458becc0b9fea9
Author: rwit1999 <[email protected]>
Date: Wed Oct 12 18:42:11 2022 +0530

commit1_Learner.txt added

commit dfa008ea1749aa748c3fc5d829073ce17c065f90
Author: Bhushan Mendhe <[email protected]>
Date: Sat Oct 8 00:17:12 2022 +0530

Initial commit
1 change: 1 addition & 0 deletions ritabrata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ritabrata Biswas
Binary file added screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.