git_basics

Git and Github

Task 1

2. git clone
git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location. 

image

3. touch README.md
The touch command is the easiest way to create new, empty files.

image

4. git status
The git status command displays the state of the working directory and the staging area.

image

5. vi filename.txt
vi is an interactive text editor that is display-oriented: the screen of your terminal acts as a window into the file you are editing. 

image

6. git add README.md
The git add filename.extension command adds single file change in the working directory to the staging area.

image

7. git add .
The git add . command adds all files change in the working directory to the staging area.

image

8. git commit -m "your own message"
git commit -m "commit message". A shortcut command that immediately creates a commit with a passed commit message.

image

9. git branch developer1
The git branch newbrach helps in creating new branch.A branch represents an independent line of development. Branches serve as an abstraction for the edit/stage/commit process. You can think of them as a way to request a brand new working directory, staging area, and project history.

image

10. git branch 
The git branch give list of branches created in current repository. Green colored and * marked branch is the current running branch.

image

11. git checkout branch_name 
The git checkout command lets you navigate between the branches created by git branch.

image

12. git switch branch_name 
The git switch is the alternative of git checkout command, it lets you navigate between the branches created by git branch.

image

13. git remote
The git remote command lets you create, view, and delete connections to other repositories. Remote connections are more like bookmarks rather than direct links into other repositories.

13  git remote

14. git push origin main
We usually run git push origin main to push your local changes in main branch to your online repository.

14  git push origin main

15. git log
Git log is a utility tool to review and read a history of everything that happens to a repository. 

15  git log

Task 2

  1. Proper Readme 2 2

  2. Add 2 collaborator 2 3

  3. Host GitHub Pages using settings (Designed to host your personal, organization, or project pages from a GitHub repository) https://shivwahh.github.io/git_basics/ 2 4

Task 3

  1. Create a Issue in your github repository. 3 1

  2. Raise a pull request. 3 2

  3. Merge A pull request.
  4. Reject a pull request with proper comments.
  5. Add a Dependabot alerts in your github.(for above cases)
  6. Stash changes
  7. Create a release your package
  8. Setup a Projects Board for your projectw.