Skip to content

Dharuva/Workshop_git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GIT/GIT-HUB WORKSHOP


  • Do not jump Directly over Solution use the following hints and try to do it Yourself!
  • You are required to make changes only in Test folder rest should be untouched.

    Task

    1. Fork and Clone the Repository.

      git clone https://github.com/<YOUR_USERNAME>/Workshop_git.git

      Note: You can clone anywhere you want but prefer Desktop for first time.

    alt text for screen readers

    1. Make A seperate Branch (Branch Name: Roll No.).

      git branch <New_branch> ---> Creating a new Branch

      git checkout <New_branch> ---> Switching over new Branch (Eg. main->20bcs102)

      or

      git checkout -b <New_branch> ---> Creating and switching over new Branch in single command

    2. Add a file in TEST Folder with File Name: Firstname_rollno.fileextension.

      (Eg: Deepak_20bcs102.pdf, Deepak_20bcs102.txt, Deepak_20bcs102.py, Deepak_20bcs102.cpp etc)

    3. You can add anything Inside the file (Eg: Code Script, Your Name, Class, Roll etc).

    4. After Adding the file into TEST folder and making necessary changes stage the changes using

      git add .

      And now you are ready to commit the changes.

      git commit -m "<MyCommit_RollNo.>"

    5. Push Changes into Your Branch.

      git push origin <BRANCH_NAME>

      While Pushing the Changes...... You will be asked for

      Username: git_username Passwork: access_token

    6. Now Open GitHub website and open the Above repo you will be able to see the option for creation of pull request. Click over Compare and pull Request.

    alt text for screen readers

    Now ! write something

    alt text for screen readers

    1. Final Step After writing commit message click over Create Pull Request.

    alt text for screen readers

    Note: You will not get the option for Merge Pull Request as you are not owner of the repo.


    Have a look over Changes

    Test Folder Added and updated Readme.md

    alt text for screen readers

  • About

    Practice Git/Git-Hub

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages

    • C++ 100.0%